Created
July 6, 2019 01:18
-
-
Save mariadanieldeepak/9fe3d4cfc49f0e0ce0c5da1a8239f59e to your computer and use it in GitHub Desktop.
Downgrade Node in Mac OS using Homebrew without messing dependencies
This file contains hidden or 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
# Find existing version | |
node --version | |
# Search available Node versions. | |
brew search node | |
# I neeeded a version between > 10.0 < 11. So I chose node@10. | |
brew install node@10 | |
# You can install multiple versions, but you cannot have them available all at once. | |
# Hence unlink the generic version. | |
brew unlink node | |
# Link the version that you just installed. | |
brew link node@10 | |
# For some older node versions (which are keg-only), it might be required to link them | |
# with the --force and --overwrite options | |
brew link --force --overwrite node@10 | |
# Find downgraded version | |
node --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment