Skip to content

Instantly share code, notes, and snippets.

@mk30
Last active June 6, 2017 09:02
Show Gist options
  • Save mk30/7be5bcedf3673f63fba69692d98cd768 to your computer and use it in GitHub Desktop.
Save mk30/7be5bcedf3673f63fba69692d98cd768 to your computer and use it in GitHub Desktop.
installing node.js
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`
@serapath
Copy link

serapath commented Jun 5, 2017

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

@mk30
Copy link
Author

mk30 commented Jun 6, 2017

i think i like the instructions here even more: http://www.tutorialspoint.com/nodejs/nodejs_environment_setup.htm

@mk30
Copy link
Author

mk30 commented Jun 6, 2017

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