Skip to content

Instantly share code, notes, and snippets.

@ryuichi24
Created January 30, 2021 10:04
Show Gist options
  • Select an option

  • Save ryuichi24/e04bbc300ab9501e28d92304ba2c951d to your computer and use it in GitHub Desktop.

Select an option

Save ryuichi24/e04bbc300ab9501e28d92304ba2c951d to your computer and use it in GitHub Desktop.
commands for NVM and some scripts for statup file

NVM Commands

show all node versions available for installing

nvm ls-remote

show all node versions already installed

nvm ls

install selected node

nvm install <node version>

uninstall selected version of node

nvm uninstall <node version>

select node version to use

nvm use <node version>

Script to add in startup file (.zshrc or .bash_profile)

export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment