Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
node and npm install without sudo
## make sure you use python2.x (recommended python2.7)
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
export JOBS=8 # optional, sets number of parallel commands.
./configure --prefix=$HOME/local
#configure --prefix=$HOME/local/node
make install # ok, fine, this step probably takes more than 30 seconds...
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
curl | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment