Skip to content

Instantly share code, notes, and snippets.

@andreconghau
Created February 16, 2022 02:00
Show Gist options
  • Save andreconghau/5c3c62e037ca16fc19fe921c1482a50d to your computer and use it in GitHub Desktop.
Save andreconghau/5c3c62e037ca16fc19fe921c1482a50d to your computer and use it in GitHub Desktop.
manage node version

https://github.com/nvm-sh/nvm

Edit profiel

vim .bash_profile

# add new
 export NVM_DIR="$HOME/.nvm"
  [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"  # This loads nvm
  [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion
nvm install 16.14.0

Downloading and installing node v16.14.0...
Downloading https://nodejs.org/dist/v16.14.0/node-v16.14.0-darwin-x64.tar.gz...
##################################################################################################################################################################################################################################### 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v16.14.0 (npm v8.3.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment