Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade Node js version to 0.12.4 on Ubuntu

Tags:

node.js

ubuntu

I want to upgrade Node JS version on Ubuntu.

I tried many commands but its version is still the older i.e v0.10.37.

I tried:

sudo npm install -g n
sudo n install 0.12.4
sudo n use 0.12.4

Also tried with nvm but non of them works for me. How can I upgrade Node Js version to 0.12.4?

like image 328
StormTrooper Avatar asked Jun 09 '15 05:06

StormTrooper


1 Answers

Use npm in order to upgrade node

First Clean the cache and try

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

Then create a symbolic link(It is needed only sometimes, first try with these three commands. If it doesnot work add this.)

It will be updated to 0.12.4 Version.

like image 68
Sravan Avatar answered Nov 15 '22 04:11

Sravan