Node
NVM (Node Version Manager)
brew install nvm
Load nvm
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$HOMEBREW_PREFIX/opt/nvm/nvm.sh" ] && \. "$HOMEBREW_PREFIX/opt/nvm/nvm.sh"
Reload your shell
- Perform source or Restart the Terminal or Restart the System
Install Node
nvm install latest
Set the default Node Version
nvm use <node_version>
Verify
node -v
npm -v