Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Downgrade Node in Mac OS using Homebrew without messing dependencies
# 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
You can’t perform that action at this time.