How to Install Node.js on MacOS
In this tutorial, we will learn the steps involved in the installation process of Node.js on MacOS.
- Homebrew must be installed on the system.
This includes the following steps.
1) Update repository index of Homebrew package installer
Repository index of homebrew package installer needs to be updated first. It can be done with the help of following command:
2) Install Node.js
After updating the repository index of homebrew package installer, we need to install Node.js using the following command:
This installs Node.js inside the Celllar directory of /usr/local/.
To verify that we have installed the desired version of Node.js, we can run the command node -v. It will show the version installed on our MacOS.
Well, we have successfully installed Node.js on MacOS.