Skip to content

Instantly share code, notes, and snippets.

@dklisiaris
Last active December 27, 2018 11:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dklisiaris/c732d515407ab2ebaa41 to your computer and use it in GitHub Desktop.
Save dklisiaris/c732d515407ab2ebaa41 to your computer and use it in GitHub Desktop.
Latest node.js & npm installation on Ubuntu 12.04

This is probably the quickest way to install nodejs and npm on 12.04. For compiling and install from source check this.

Use launchpad repo by Chris Lea

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update

Install node.js

sudo apt-get install nodejs

Check node.js and npm versions.

node -v
npm -v

In case there are problems with permissions and access errors.

sudo chown -R $(whoami) ~/.npm
@ant-rod-silva
Copy link

ant-rod-silva commented Dec 27, 2018

Works on Ubuntu 12.04. But the version is 0.10.37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment