0

I have found some guides (for ex. Install latest nodejs version in ubuntu 14.04) how to install updated version of NodeJS, also followed the official one that says to use

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

which is the same thing as in the SO guide above. However, the version of node I get is 6.3.1 but I want the latest 6.7.0. I have installed 6.7.0 on OSX via brew but don't know how to get it on Ubuntu. Is there any way to do it, using APT preferably?

Community
  • 1
  • 1
simPod
  • 11,498
  • 17
  • 86
  • 139

1 Answers1

0

I have done this way:-

sudo npm install n -g
sudo n 6.7.0  

Alternatively for latest stable version you can do this:-

sudo n stable

And For latest version

sudo n latest
Rajesh Patel
  • 1,946
  • 16
  • 20