Created
September 15, 2018 15:22
-
-
Save mlabbe/bac367f09f7ca747301b1e7b18a2dbde to your computer and use it in GitHub Desktop.
Install Quarantined NodeJS to avoid systemwide pollution
This file contains hidden or 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
export INSTALLDIR=$HOME/dev/node/local # or wherever | |
mkdir -p $INSTALLDIR | |
# Put these lines in your .bashrc | |
export PATH=$INSTALLDIR/bin:$PATH | |
export MANPATH=$INSTALLDIR/share/man | |
git clone https://github.com/nodejs/node | |
cd node | |
./configure --prefix=$INSTALLDIR | |
make -j8 | |
make install | |
cd .. | |
git clone https://github.com/npm/cli | |
cd cli | |
./configure --prefix=$INSTALLDIR | |
make | |
make install | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment