Skip to content

Instantly share code, notes, and snippets.

@userdocs
Created February 23, 2020 17:52
Show Gist options
  • Save userdocs/eaa8c2b3108b338a57c9ea1da2ed1115 to your computer and use it in GitHub Desktop.
Save userdocs/eaa8c2b3108b338a57c9ea1da2ed1115 to your computer and use it in GitHub Desktop.
install node lts to local dir.
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