Last active
August 29, 2015 14:24
-
-
Save kengz/f03fdb74a4820e078d84 to your computer and use it in GitHub Desktop.
NodeJS installation on Google Compute Engine
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
# 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