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
Since I have installed node.js using .tar file available on node.js, I had to put the location of the node directory on:
~/.bashrc
of root by changing from normal user to root using command:
sudo -i
then I had to add the path to node where I extracted it into .bashrc file as below:
then refereshed .bashrc using
. ~/.bashrc
there after
npm: command not found
went away