Closed darkbasic closed 5 years ago
You don't need to use that guide if you're using nvm, because nvm handles it for you (hence the compatibility warning).
How can I install global packages without sudo using nvm?
You don't need to use sudo
with nvm. Just npm install -g yo
, nvm automatically sets the npm prefix to non-root directory. If you've been using sudo
with nvm you'll probably need to fix the permissions of the nvm and npm cache directories.
My recommendation is to not use nvm
. It has so many problems and issues.
https://github.com/tj/n is a better choice.
nvm says: