How to Upgrade Node.js in Linux
Clean all npm cache from your system forcefully !
# sudo npm cache clean -f
# sudo npm install -g n
The n package represents a Node helper.
For installing the stable version
# sudo n stable
For installing the latest version
# sudo n latest
We could specify a desired version to install :-
# sudo n 0.8.21
Once your install is complete, you can confirm you version with another command :
# node -v
How to Upgrade Node.js in Linux
Reviewed by vivek sathisan
on
17:18
Rating:

No comments: