Install NPM on Mac

Prerequisites

  • Must be running a Mac computer.
  • Must have brew installed on the computer. For help on installing homebrew please reference HERE

What is NPM?

  • NPM is a popular node package manager to find and install common Javascript packages to be used on web development

Steps

 

First off we will need to install XCode so run

xcode-select --install

from your command line.

Next up use brew to install node

brew install node

NOTE: This may take a few minutes to install.

Lastly, just check to make sure that it got installed correctly via

npm -v

And that’s it.

Advertisements