gruntjs / grunt-cli

Grunt's command line interface.
http://gruntjs.com/
MIT License
706 stars 248 forks source link

use a global grunt install if no local install found #55

Closed tbull closed 10 years ago

tbull commented 10 years ago

There's a problem with grunt-cli. It doesn't recognize a globally installed grunt, so one has to reinstall grunt for each project separately, thereby littering the project's file space. This patch fixes this issue.

tkellen commented 10 years ago

Please read this: http://weblog.bocoup.com/building-command-line-tools-in-node-with-liftoff/

tbull commented 10 years ago

That's a 404.

tkellen commented 10 years ago

Updated, this is the correct link: http://weblog.bocoup.com/building-command-line-tools-in-node-with-liftoff/

tbull commented 10 years ago

I'm not sure, what you're trying to tell me with regard to this PR.

vladikoff commented 10 years ago

Hey @tbull, thanks for the PR! Grunt will probably never defer to globally installed Grunt as the last resort. Unless npm changes the way "global" modules work (probably won't happen).

There are many reasons why "global" Grunt is bad, some of them mentioned here https://github.com/gruntjs/grunt-cli/issues/10 and more explanation how Node's global / cli tools work: http://weblog.bocoup.com/building-command-line-tools-in-node-with-liftoff/

vladikoff commented 9 years ago

does this will be ever resolved?

See comment above.