Skip to content

Instantly share code, notes, and snippets.

@kengz
Last active August 29, 2015 14:24
Show Gist options
  • Save kengz/f03fdb74a4820e078d84 to your computer and use it in GitHub Desktop.
Save kengz/f03fdb74a4820e078d84 to your computer and use it in GitHub Desktop.
NodeJS installation on Google Compute Engine
# First create a Google Compute Engine (GCE) VM instance, then SSH into the VM.
# 1. update everything
sudo apt-get update
# 2. install these 4 things
sudo apt-get install python g++ make checkinstall
# 3. make a src directory and go into it
mkdir ~/src && cd $_
# 4. download and install nodeJS
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd node-v*
# 5. run configure
./configure
# 6. run checkinstall, change the node version if you need to.
# Remember to change the version to remove the "v", as in "v0.12.5" to "0.12.5"
# Or else Debian will fail to install due to poor parsing
sudo checkinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment