I\'m trying to upgrade to the latest version of node. I\'m following the instructions at http://davidwalsh.name/upgrade-nodejs
But when I do:
sudo np
If you installed node/npm with nvm, the nvm environment configuration file has to be run before you can use either package.
This is generally found in ~/.nvm/nvm.sh.
To run this automatically, include:
source ~/.nvm/nvm.sh
in the .bash_profile file for your user
If you then want to use sudo with that user, make sure to include the -i parameter to make sudo set the user environment. eg
sudo -iu jenkins npm install grunt-cli