Skip to content

Instantly share code, notes, and snippets.

@awd-git
Created November 17, 2015 14:39
Show Gist options
  • Save awd-git/8cca6248e2a419dce773 to your computer and use it in GitHub Desktop.
Save awd-git/8cca6248e2a419dce773 to your computer and use it in GitHub Desktop.
Ubuntu base node.js (and npm) setup
// first add node.js to the APT package catalog
// node.js Version 5.x
$ curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
// node.js Version 4.x
$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
// always a good idea to re-synchronize the whole package index
$ sudo apt-get update
// verify installation
$ node -v
v5.0.0
// or
$ nodejs -v
v5.0.0
// also npm should be available now
$ npm -v
3.3.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment