Solution to issue below:
The package is fine. My config was the problem.
I'm using zsh
as my shell and had the line source /usr/share/nvm/init-nvm.sh
in my .zshenv
. Moving it to .zshrc
fixed it.
Looks like my distro sources .zshenv
on every keybinding I press. I don't know...
Issue
Beginner in arch here. I installed the EndeavorOS bspwm (community) edition and it works perfectly until I install this package.
This is how I installed it:
yay -S --noconfirm nvm
source /usr/share/nvm/init-nvm.sh
nvm install node
and all of a sudden all of my keybindings take 1-2 seconds to register, as opposed to instantly.
I went so far as to reinstall the distro and install each package I use and reboot the system (I know it's overkill) until I found what was slowing it down.
After finding out, removing this package with yay -Rusn nvm
"fixed" the problem.
Pinned Comments
tomwadley commented on 2020-09-04 22:14 (UTC) (edited on 2020-09-04 22:15 (UTC) by tomwadley)
Due to the way nvm is designed, you have to source it before you can use it:
You will probably want that in your shell startup file, e.g.:
See nvm.install or the upstream README for more details.