Created
April 7, 2016 15:18
-
-
Save Juraci/3f08cba95a8d7de3037cd0dd802c6be4 to your computer and use it in GitHub Desktop.
My preferred way to install node and npm on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node from source | |
mkdir ~/local | |
git clone [email protected]: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 [email protected]: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