Blog

Node.js, npm, and Homebrew Mac Terminal Commands
Posted on July 10, 2015 in Command Line, Mac, Node.js by Matt Jennings

After Installed Homebrew on a Mac, How to Install Node.js via Terminal

brew install node

View Node.js Version

node -v

View npm Packages Installed

npm list -g --depth=0

Using Homebrew, How to Update Node.js by Running the Two Commands Below

brew update
brew upgrade node

Using Homebrew, How to Update all Install npm Packages

brew update && brew upgrade

Using Homebrew, How to Uninstall Node.js and npm

brew uninstall node

Leave a Reply

To Top ↑