Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.08 KB

install_nodejs_npm_from_source_on_nightingale.md

File metadata and controls

30 lines (26 loc) · 1.08 KB

So you want to install Node.js and npm on nightingale ...

Here is a step-by-step guide, based on light modifications to the stackoverflow answer here:

  1. ssh into nightingale

  2. 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
  1. 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 
  1. Now install npm from source
curl -L -O https://www.npmjs.org/install.sh
bash install.sh

Potentially helpful resources