Georgeena Thomas
Jul 13, 2018 · 2 min read

4 Step Process to Downgrade Node version using Homebrew

Certain node packages can be pretty unstable and based on your project/ teams requirements you might want to downgrade them. (In my case, I had to downgrade from v10 to v9 because we used a bcrypt package version in our API that wasn’t compatible with v10)

Here’s a quick guide on how you can easily do it via home brew :

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)

Georgeena Thomas
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade