Last active
June 18, 2020 13:41
-
-
Save jrichardsz/21ab811628a763182b772e35163a4694 to your computer and use it in GitHub Desktop.
Install or Update 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
# 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