- If you use nvm via the zsh-plugin, disable it by removing
nvm
from theplugins
of your~/.zshrc
- If you have nvm installed via the install-script from creationix, unistall it as described here
- do a regular nvm-ng-install as described here
Setting a prefix changes the installation directory for global packages and is not supported by nvm.
if npm config get prefix
is either not set, or a subpath of echo $NVM_DIR
, then you're good to go. Otherwise run npm config delete prefix
to unset your prefix.