How to upgrade Node.Js to latest version

How to upgrade Node.Js to latest version.

For Linux/Max

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Instead of stable you can also specify a desired version.

Sudo n 0.8.21

For windows

You can update npm using below command.

npm update npm -g

However to update node.js better you will reinstall from node.js website.

Posted in Labels: |

0 comments:

Post a Comment