Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Last active June 18, 2020 13:41
Show Gist options
  • Save jrichardsz/21ab811628a763182b772e35163a4694 to your computer and use it in GitHub Desktop.
Save jrichardsz/21ab811628a763182b772e35163a4694 to your computer and use it in GitHub Desktop.
Install or Update node.js
# example of node.js 6.1..5 installation
# easy
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install v6.11.5
nvm install v8.11.2
nvm install v10.4.0
# something easy
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
# manually
wget https://nodejs.org/dist/v6.11.5/node-v6.11.5.tar.gz
mkdir /my/apps/
tar -xzf bar.tar.gz -C /my/apps/
export NODEJS_PATH=/my/apps/my_nodejs_folder
export PATH=$PATH':'$NODE_PATH'/bin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment