Last active
June 6, 2017 09:02
-
-
Save mk30/7be5bcedf3673f63fba69692d98cd768 to your computer and use it in GitHub Desktop.
installing node.js
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
download appropriate file from https://nodejs.org/en/download/ | |
`tar -xf /name/of/file.tar.gz -C /usr/local/` | |
`export PATH=$PATH:node_dir/bin` | |
if in ubuntu: `sudo ln -s "$(which nodejs)" /usr/bin/node` |
i think i like the instructions here even more: http://www.tutorialspoint.com/nodejs/nodejs_environment_setup.htm
wrote a new version of the instructions based on the above link: https://gist.github.com/mk30/3fe1bf103da3d7828621b8c7413e6e8c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oh interesting :-) I'll try that next time. I'm never sure how to install and upgrade node.
I think I will try that next time.
It's more minimal.
Usually I'm following https://github.com/creationix/nvm which basically boils down to
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
or
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
... they also have some more notes about gotchas that might occur on windows or sometimes macOSX
What I like is, that later - after a new node release - i can use
nvm
to easily upgrade to the next version.I currently get
which node # /home/serapath/.nvm/versions/node/v7.6.0/bin/node