Skip to content

Instantly share code, notes, and snippets.

@Juraci
Created April 7, 2016 15:18
Show Gist options
  • Save Juraci/3f08cba95a8d7de3037cd0dd802c6be4 to your computer and use it in GitHub Desktop.
Save Juraci/3f08cba95a8d7de3037cd0dd802c6be4 to your computer and use it in GitHub Desktop.
My preferred way to install node and npm on Linux
Node from source
mkdir ~/local
git clone git@github.com:nodejs/node.git
cd node
git checkout <lastest release tag here>
./configure --prefix=~/local
make install
echo export 'PATH="$HOME/local/bin:$PATH"' >> ~/.zshrc (replace .zshrc with your shell config file)
npm from source
git clone git@github.com:npm/npm.git
cd npm
git checkout <lastest release tag here>
./configure
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment