Skip to content

Instantly share code, notes, and snippets.

@mariadanieldeepak
Created July 6, 2019 01:18
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save mariadanieldeepak/9fe3d4cfc49f0e0ce0c5da1a8239f59e to your computer and use it in GitHub Desktop.
Save mariadanieldeepak/9fe3d4cfc49f0e0ce0c5da1a8239f59e to your computer and use it in GitHub Desktop.
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