Skip to content

Instantly share code, notes, and snippets.

@giaphiep
Created August 18, 2023 05:14
Show Gist options
  • Save giaphiep/98b4e9ec8065bb88d609daf2af49245e to your computer and use it in GitHub Desktop.
Save giaphiep/98b4e9ec8065bb88d609daf2af49245e to your computer and use it in GitHub Desktop.
How to use multiple nodejs version on mac m1
1. Remove current nodejs
brew uninstall --ignore-dependencies node
brew uninstall --force node
2. Intall nvm (allow manage multiple version)
brew install nvm
3. Find version want insall https://nodejs.org/en/blog
nvm install version (exampe: nvm install 16.20.2)
4. Change version
example:
nvm use 16
nvm use 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment