Here is a step-by-step guide, based on light modifications to the stackoverflow answer here:
-
ssh into nightingale
-
Update your PATH variable and make some directories in your home dir where you can install stuff
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
- Go into your newly created
node-latest-install
folder and install Nodejs from source (this might take a little while).
cd ~/node-latest-install
curl -L -O http://nodejs.org/dist/node-latest.tar.gz
tar xf node-latest.tar.gz
./configure --prefix=~/local
make install
- Now install npm from source
curl -L -O https://www.npmjs.org/install.sh
bash install.sh