qosavs.blogg.se

Brew downgrade node
Brew downgrade node











brew downgrade node

The first step should be to remove the preinstalled NodeJS version: brew uninstall nodeĪfter this you just have to install the version you want to. Note: For best results, you should remove the node_modules folder in your project and rerun npm install to allow Node to rebuild all the dependencies using the correct Node version.NodeJS is installed with brew. To do this, we can use the following command to get the latest stable release of each major version (just swap out the version number to the version you want to install): brew install the correct version is installed we just need to unlink the old version: brew unlink link the version we want to use: brew link ensure everything worked out as planned, check the node version to confirm: node -v You may need to install any missing version required if it's not already available locally. Next, lets check what version(s) of Node are already available on our system using the following command: brew search node Here is the basics for switching Node versions using Homebrew on Mac OS.įirst, find out what version of Node you currently have installed: node -v With Node, I'm always trying to stay current and in some cases I need to switch between Node versions when switching between projects. This may seem like common sense but with every software update that comes along, while there are often clear benefits to the upgrade, you may find your previously working code or project is no longer willing to play nice. There is an old saying I find myself repeating often, "if it ain't broke, don't fix it".













Brew downgrade node