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
In order to install npm packages globally with sudo permission, /usr/bin/npm should be available. If npm exists on some other directory, create a soft link like:
/usr/bin/npm
npm
sudo ln -s /usr/local/bin/npm /usr/bin/npm
It works on Fedora 25, node8.0.0 and npm5.0.0