Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to install update node.js
# Usage:
# curl | sh -s 0.8.10
# This script will simply install/update node.js to the version you specify.
# It will be installed/updated to $HOME/local/node
cd /tmp
tar -xzvf node-v$NODEJS.tar.gz
cd node-v$NODEJS
make clean
./configure --prefix=$HOME/local/node
make install
# install/update npm
curl -kL | clean=yes npm_config_prefix=$HOME/local/node sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.