
With all of the above said, this is why I’m a fan of using Homebrew to install Node and then, in turn, using Node to install packages such as Gulp. ☺️īut if you’re looking to save a little bit of time so you can focus on work, then I highly recommend Homebrew (or another package manager depending on the type of work you’re doing). If you’re into a little bit of self-inflicted pain, then you can forgo any of the above. it makes uninstalling packages easy, too.it makes updating the software very easy,.it finds, downloads, and installs the package for you,.

Depending on the application, you can use the Mac App Store you can use Composer, you can download something directly from a repository like GitHub, and so on.īut using a package manager comes with several benefits:

If it's not, then just type: brew link node or brew link -overwrite node Share Improve this answer edited at 9:06 Bryan Downing 15. There are some ways to install packages on a Mac. brew update brew doctor brew upgrade node Now you have installed updated version of node, and it's probably not linked. I’ve also talked about Node, Gulp, and a few starter packages that I recommend for getting started with using them in WordPress development.īut one of the things I’ve not talked about is how to install Node using Homebrew. In a previous post, I’ve talked about Homebrew (and why it’s part of my setup). To remedy that you might consider adding your desired node version to PATH instead: echo 'export > ~/.zshrc

So if you have the latest/generic node package already installed you need to unlink it first: brew unlink nodeĪnd then you can link a different version: brew link it might be required to link them with the -force and -overwrite options: brew link -force -overwrite when new node version comes out and you’ll update to it by running brew upgrade, the link will be removed and the most recent node version will be linked instead. This might give you the follow results: heroku/brew/heroku-node ✔Īnd then install the desired version: brew install remember that you can install more than 1 node package at the same time, but you cannot have them available at the same time.

These days if you want to install a different version of node you do it this way:įirst search for your desired package: brew search node In this tutorial, we will learn the steps involved in the installation process of Node.js on MacOS.
