How to install Node using Brew on Mac


To install Node on Mac using brew, run the command brew install node.

Example:
% brew install node

==> Downloading https://ghcr.io/v2/homebrew/core/brotli/manifests/1.0.9
...
==> Installing dependencies for node: brotli, c-ares, icu4c, libnghttp2, libuv, ca-certificates and openssl@1.1
...
Installing node
/opt/homebrew/Cellar/node/18.8.0: 1,984 files, 48.3MB
==> Running `brew cleanup node`...
Install Node using Brew on Mac

If you do not have brew installed you will get an error, zsh: command not found brew

How to install brew on Mac



Have Questions? Post them here!
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.