Created
November 17, 2015 14:39
-
-
Save awd-git/8cca6248e2a419dce773 to your computer and use it in GitHub Desktop.
Ubuntu base node.js (and npm) setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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