Skip to content

Instantly share code, notes, and snippets.

@grandmanitou
Created June 18, 2020 08:57
Show Gist options
  • Save grandmanitou/879cf403d837b9bc7522b934b3e48abb to your computer and use it in GitHub Desktop.
Save grandmanitou/879cf403d837b9bc7522b934b3e48abb to your computer and use it in GitHub Desktop.
4 Step Process to Downgrade Node version using Homebrew

Check your current node version

$ node -v

Check for available node versions

brew search node

To unlink from current version

$ brew unlink node

Install the version you want using the following command (e.g. for version 8)

brew install node@8

Link it to the installed version (Note: Sometimes, when you try linking it or even while installing you might be asked to update your bash rc. Follow the steps on your terminal and you should be all set)

brew link node@8

Lastly, verify you have the right version installed using the node version command from the first step. (Note : If you downgrading to a lower version because of package issues on your earlier version, you will need to delete the ‘node_modules’ folder present under your project folder for ‘npm install’ to pull in the packages again instead of using cached instances)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment