Linux, OpenSource, Programming And Hacks

May 13, 2017

Install latest Node.js version in ubuntu 16.04

May 13, 2017

Node.js is an opensource JavaScript based framework for server-side scripting.

Ubuntu Repository has the older version of node.js

To get the updated version you need to install node.js using the PPA by provided by NodeSource.

for 6.x versions (LTS version)

curl -sL | sudo -E bash -

for 7.x versions (current active release)

curl -sL | sudo -E bash -

after this the PPA will be added and repository will be updated automatically,

now install the updated node.js version

sudo apt-get install nodejs

you may also want to install npm, which is node package manager.
sudo apt-get install npm

No comments:

Post a Comment