nordvpn

Install Node.js and NPM on Mac

Install Node.js and NPM on Mac

In this article, I will show you how to install node.js and npm on Mac.

Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser. Node.js lets developers use JavaScript to write command-line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user’s web browser. Consequently, Node.js represents a “JavaScript everywhere” paradigm, unifying web application development around a single programming language, rather than different languages for server- and client-side scripts.

Source: Wikipedia

Read Also: How to install OpenJDK 13 on Mac using brew

1. Prerequisites

  • 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 update

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
v13.7.0

and also npm

# npm -v
6.13.6

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

Your email address will not be published.


*



The reCAPTCHA verification period has expired. Please reload the page.

48-Hour Flash Sale! Courses from just $10.99