Skip to content
Dave Strus edited this page Feb 28, 2015 · 7 revisions

Installation

If you installed Homebrew in the previous step, use it to install NodeJS:

$ brew install node

If not, you can click the big, green INSTALL button on the NodeJS web site.

Testing your installation

After Node is installed, test your installation by running the following command:

$ npm install -g grunt-cli

You should see an animated cursor for a moment or two, then something like the following:

/usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt
[email protected] /usr/local/lib/node_modules/grunt-cli
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected])

If the npm command isn't available, open a new tab in Terminal and try again. Opening a new tab should make node and other related commands available to you from any directory, if they weren't already.

Clone this wiki locally