Skip to content

Instantly share code, notes, and snippets.

@luixaviles
Last active February 17, 2017 20:08
Show Gist options
  • Save luixaviles/d81a200305d94ab2a66d157a6d684dd5 to your computer and use it in GitHub Desktop.
Save luixaviles/d81a200305d94ab2a66d157a6d684dd5 to your computer and use it in GitHub Desktop.
NVM issues on Ubuntu

Workaround on Ubuntu

nvm is not compatible with the npm config "prefix" option: currently set to "/home/user/.npm-global"
Run `nvm use --delete-prefix v6.9.2` to unset it.
user@ubuntu:~$ nvm use --delete-prefix v6.9.2 --silent
user@ubuntu:~$ node --version
v6.9.2
user@ubuntu:~$ npm --version
3.10.9

Remove NVM

rm -rf ~/.nvm
rm -rf ~/.npm
rm -rf ~/.bower

and remove line source ~/.nvm from yours .bashrc or .zshrc Source: nvm-sh/nvm#298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment