I just installed Node.js
and npm
(for additional modules).
How can I update Node.js and the modules which I\'m using to the latest versions
I found this really neat way of updating node on David Walsh's blog, you can do it by installing n:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
It will install the current stable version of node
.
EDIT: Please don't use n anymore. I recommend using nvm. You can simply install stable by following the commands below:
nvm ls-remote
nvm install
nvm use