Install Node.js and NPM on Mac
In this article, I will show you how to install node.js and npm on Mac.
Read Also: How to install OpenJDK 13 on Mac using brew
- Homebrew should be installed
2. Install Node.js on Mac
In this step, we will install node.js and npm using brew. Installing node.js and npm is pretty simple with the Homebrew. Let’s install it.
brew install node
Now the node will be installed successfully.
3. Check Version
Now the node has been installed successfully let’s check the version of node and npm
# node -v
and also npm
# npm -v
4. Update node and npm
If you would like to update the node and the npm you can use the following command.
brew upgrade node
Please let me know how you liked the article.
Leave a Reply