Skip to content

Instantly share code, notes, and snippets.

@dgoguerra
Last active January 11, 2016 13:07
Show Gist options
  • Save dgoguerra/9041079 to your computer and use it in GitHub Desktop.
Save dgoguerra/9041079 to your computer and use it in GitHub Desktop.
Install nodejs and npm latest versions; needs sudo rights
# 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