Skip to content

Instantly share code, notes, and snippets.

@lugrus2000
Created March 10, 2019 21:48
Show Gist options
  • Save lugrus2000/3e5ac4293a8d3b6d8599b5ba1b6c900b to your computer and use it in GitHub Desktop.
Save lugrus2000/3e5ac4293a8d3b6d8599b5ba1b6c900b to your computer and use it in GitHub Desktop.
# this way is best if you want to stay up to date
# or submit patches to node or npm
mkdir ~/local
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
# could also fork, and then clone your own fork instead of the official one
git clone git://github.com/joyent/node.git
cd node
./configure --prefix=~/local
make install
cd ..
git clone git://github.com/isaacs/npm.git
cd npm
make install # or `make link` for bleeding edge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment