Node JS

Install node.js in Mac OS X

Node.js is actually an essential tool for every developer. Basically are a javascript interpreter for a command line. This is very interesting because allows executing javascript in any environment; you can make server-side applications, command line tools, webs, etc. An actually have a lot of followers, apps, frameworks to work with it. This ecosystem is incredible an make easier life when you work with.

But Node isn’t alone. Come with other powerful tool called npm. Npm is a package manager that allow installing third party libraries in javascript. For development, this is amazing because you could have an entire development environment in minutes.

Let’s do install Node.

Install Node

you have two ways to install in Mac OS X.

Use Installer

The easiest way to install node is with the package manager.

  1. Go to
  2. Download Mac installer version
  3. Execute and follow step by step

Use Homebrew

Homebrew is defined as package manager that OS X should have. First, we need to install homebrew. Open a terminal window and write:

After some text, you can test it works:

Now we can install Node:

And after some more text, you will be Node.JS installed.

Test It

If you open a terminal and write:

You will have the version output:

Why use Homebrew instead Installer

Why is better to use homebrew instead installer? Easy, you need administrative privileges to install, this means use sudo to install with package installer and are a big problem for working with it. You will need use sudo in front of node and this one doesn’t like execution with root privileges. To avoid this problem use Hombrew to install it.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *