> ## Content Index
> Fetch the complete content index at: https://helpmonks.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Installing node, npm and express on MacOS X
- URL: https://helpmonks.com/blog/installing-node-npm-and-express-on-macos-x/
- Published: 2013-11-06T00:00:00.000Z
- Updated: 2026-04-06T20:07:20.000Z
- Description: I've recently done a lot of work with Nodejs pulls downs its updates from a global repository and keeps all packages up-to-date. In the many years I've used
- Author: Nitai
- Tags: email marketing

I’ve recently done a lot of work with [Nodejs](http://nodejs.org/?ref=helpmonks.com) and thought I give a short installation guide on getting up and running on the Mac since there seems some confusion how to install it.

In this guide I’m using [Homebrew](http://brew.sh/?ref=helpmonks.com) since this is seriously the best and easiest way to install software for the Mac. [Homebrew](http://brew.sh/?ref=helpmonks.com) pulls downs its updates from a global repository and keeps all packages up-to-date. In the many years I’ve used [Homebrew](http://brew.sh/?ref=helpmonks.com) I hardly ever had any issues with it.

To install Homebrew use this (in the terminal):

\[code\]ruby -e "$(curl -fsSL [https://raw.github.com/mxcl/homebrew/go](https://raw.github.com/mxcl/homebrew/go?ref=helpmonks.com))"\[/code\]

Once installed, you can simply install Nodejs with:

\[code\]brew install node\[/code\]

This install node and also adds it to your path. Thus you can simply issue “node” in the terminal. Now, in order to do some serious development with Nodejs you will also want to install [NPM (which stands for Node Packaged Modules)](https://npmjs.org/?ref=helpmonks.com) which allows you to expand Node with, e.g. [Express](http://expressjs.com/?ref=helpmonks.com) and many other useful packages.

Luckily, installing npm is as easy as;

\[code\]brew install npm\[/code\]

With npm installed you can now install Express. [Express is the web application framework](http://expressjs.com/?ref=helpmonks.com) written for Nodejs. Since Express is for Nodejs we can now use npm to install express into our application. But before doing so, you should understand the difference between \*global\* and \*local\* modules.

With every Nodejs application you can install modules for the application only or install them globally, so they are available to all applications. Local modules are installed in the “node\_modules” within your application folder whereas global modules will be installed in a global “node\_modules” folder (within the path of nodejs itself).

In order to install a module globally you simply append the “-g” flag to your install statement. In short, for installing express globally you would do:

\[code\]npm install express -g\[/code\]

If you want to install express locally to the application you first would change to the application directory and then issue a:

\[code\]npm install express\[/code\]

As mentioned, this will create a “node\_modules” folder (if not already there) and place the express module in it.

There you go. In short steps you just set up a complete web development environment.