Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 354
LandonSchropp Avatar asked Sep 09 '13 22:09

LandonSchropp


People also ask

Is grunt still used?

The Grunt community is still going strong and both tools look like they're going to be around for a while yet. I should mention that another up and coming alternative to task runners like Grunt and Gulp is simply using npm scripts with command-line tools.


2 Answers

Try installing the command line interface:

npm install -g grunt-cli
like image 157
weiglt Avatar answered Oct 27 '22 01:10

weiglt


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

like image 33
Koala7 Avatar answered Oct 27 '22 01:10

Koala7