$grunt -vgrunt-cli: The grunt command line interface (v1.2.0)Fatal error: can not to discover local grunt.If you"re see this message, grunt hasn"t been installed locally toyour project. For more information about installing and configuring grunt,please watch the gaining Started guide:http://gruntjs.com/getting-startedMore details:

$ which grunt/usr/bin/grunt


I recognize this is an old post, however I thought I"d paste and also explain a details quote native the Grunt documentation because that anyone running right into this misconception/issue.

You are watching: Fatal error: unable to find local grunt.

Each time "grunt" is run, it looks for a locally installed Grunt making use of node"s require() system. due to the fact that of this, you deserve to run grunt from any kind of subfolder in her project.

Source here.

Yes, even though the CLI was installed using the -g flag, grunt-cli needs a Gruntfile.(either .js or .coffee), even to run regulates utility regulates like -v or --help


Thanks for contributing response to questioning Ubuntu!

Please be sure to answer the question. Provide details and also share her research!

But avoid

Asking because that help, clarification, or responding to other answers.Making statements based upon opinion; ago them increase with references or an individual experience.

See more: Breath Of The Wild A Parents Love, A Parent'S Love

To learn more, watch our tips on writing great answers.

short article Your price Discard

By click “Post your Answer”, girlfriend agree come our terms of service, privacy policy and also cookie plan

Not the prize you're looking for? Browse other questions tagged npm grunt or asking your very own question.


site design / logo © 2021 stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.9.20.40247

Ask Ubuntu works best with JavaScript enabled

your privacy

By clicking “Accept every cookies”, friend agree ridge Exchange can store cookie on your machine and disclose info in accordance with our Cookie Policy.