Last active
November 30, 2015 11:20
-
-
Save pounard/5dc545133c495fdebf3d to your computer and use it in GitHub Desktop.
Install node js for your user, isolated, static, and working. This also installs gulp and I'm happy with it.
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
#!/bin/sh | |
# Thank you so much, mab! | |
cd $HOME | |
wget https://nodejs.org/dist/v4.1.1/node-v4.1.1-linux-x64.tar.gz | |
tar xzf node-v4.1.1-linux-x64.tar.gz | |
rm -rf node-v4.1.1-linux-x64.tar.gz | |
mv node-v4.1.1-linux-x64 node | |
export PATH="$PATH:$HOME/node/bin" | |
npm install gulp | |
export PATH="$PATH:$HOME/node_modules/.bin" | |
echo "export PATH=\"\$PATH:\$HOME/node/bin:\$HOME/node_modules/.bin\"" >> .bashrc | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just read http://makina-corpus.com/blog/metier/2015/toi-aussi-installes-nodejs-dans-ton-home
With nvm, you can install several node versions. https://github.com/creationix/nvm