Skip to content

Instantly share code, notes, and snippets.

@gmdias727
Last active June 5, 2024 13:06
Show Gist options
  • Save gmdias727/81194f74e0bc7900dcc6ee88520560dc to your computer and use it in GitHub Desktop.
Save gmdias727/81194f74e0bc7900dcc6ee88520560dc to your computer and use it in GitHub Desktop.

curl

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

wget

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

load

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

install

nvm install --lts

check version

node -v && npm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment