15Jun

How to change your node version using Homebrew

How to downgrade your node version to make it work for a certain NPM package. When you run multiple projects at once, sometimes you will need a newer or older node version to run a specific project. Here is a step-by-step to change your node version.

Open terminal

To see your current node version

$ node --version

To see available node versions

$ brew search node

To unlink from current version

$ brew unlink node

Install any version e.g. 10

$ brew install node@10

To link an installed version

$ brew link node@10

To see your current node version (again)

$ node --version

Source of the above: https://apple.stackexchange.com/questions/171530/how-do-i-downgrade-node-or-install-a-specific-previous-version-using-homebrew

I mostly post this for myself as a memo, but hope it can help some other developers.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments