Created
February 23, 2020 17:52
-
-
Save userdocs/eaa8c2b3108b338a57c9ea1da2ed1115 to your computer and use it in GitHub Desktop.
install node lts to local dir.
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
mkdir -p ~/bin && source ~/.profile | |
wget -qO ~/node.js.tar.gz "$(curl -sNL https://nodejs.org/en/download/ | grep -Po 'https://nodejs.org/dist/(.*)/node-v(.*)-linux-x64.tar.xz')" | |
tar xf ~/node.js.tar.gz --strip-components=1 -C ~/ | |
cd && rm -rf node.js.tar.gz README.md LICENSE CHANGELOG.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment