Created
August 18, 2023 05:14
-
-
Save giaphiep/98b4e9ec8065bb88d609daf2af49245e to your computer and use it in GitHub Desktop.
How to use multiple nodejs version on mac m1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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