Last active
January 11, 2016 13:07
-
-
Save dgoguerra/9041079 to your computer and use it in GitHub Desktop.
Install nodejs and npm latest versions; needs sudo rights
This file contains hidden or 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
# C++ needed to compile node | |
# sudo apt-get -y install build-essential | |
cd /tmp | |
wget --no-verbose http://nodejs.org/dist/node-latest.tar.gz | |
tar zxf node-latest.tar.gz | |
cd node-v* | |
./configure && make && sudo make install | |
# npm install. insecure, pipe straight to the rooted shell | |
curl -L https://www.npmjs.org/install.sh | sudo sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment