Skip to content

Instantly share code, notes, and snippets.

@selfup
Last active April 4, 2021 14:30
Show Gist options
  • Save selfup/05a48dd14a6af8f4693ca2b6f2210d04 to your computer and use it in GitHub Desktop.
Save selfup/05a48dd14a6af8f4693ca2b6f2210d04 to your computer and use it in GitHub Desktop.

Tested on Ubuntu 20.04

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash \
  && source ~/.bashrc \
  && command -v nvm \
  && nvm install stable \
  && nvm use stable \
  && echo "Script Check - Npm Version: $(npm -v)" \
  && echo "Script Check - Node Version: $(node -v)"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash \
  && echo "source ~/.bashrc" >> ~/.bash_profile \
  && source ~/.bash_profile \
  && command -v nvm \
  && nvm install node \
  && nvm use node \
  && echo "Script Check - Npm Version: $(npm -v)" \
  && echo "Script Check - Node Version: $(node -v)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment