LandonSchropp
LandonSchropp

Reputation: 10264

Installing Grunt on OS X

Here's what I've done so far:

brew install nodejs npm
npm install -g grunt

I've also set up my path to include the proper directories. When I run echo $PATH I get:

/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/lib/node:/usr/local/lib/node_modules:/usr/local/share/npm/bin:/usr/local/share/npm/lib/node_modules:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/landonschropp/.rbenv/shims:/usr/local/sbin:/usr/local/lib/node:/usr/local/lib/node_modules:/usr/local/share/npm/bin:/usr/local/share/npm/lib/node_modules:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

The installation succeeds without any problems. However, if I try to run grunt I get this error:

zsh: permission denied: grunt

Did I miss a step?

Upvotes: 15

Views: 14230

Answers (2)

Koala7
Koala7

Reputation: 1404

sudo npm install -g grunt-cli and then type your password.

Upvotes: 6

weiglt
weiglt

Reputation: 1079

Try installing the command line interface:

npm install -g grunt-cli

Upvotes: 40

Related Questions