Solution:
Try config the $NVM_DIR reference again.
For example nvm use v7.10.0, and have the error: Run npm config delete prefix
or nvm use --delete-prefix v7.10.0 --silent
to unset it. You need overwrite nvm prefix,
npm config set prefix $NVM_DIR/versions/node/v7.10.0
Solution:
nvm install node --reinstall-packages-from="10.3.0"
nvm install lts/* --reinstall-packages-from=node
This will install the appropriate version and reinstall all packages from the currently used node version.
npm bin -g(--global)
show path to globally installed packages
or just
npm bin
for local installed packages