Skip to main content
null 💻 notes

Unable to find local grunt after git clone [solved]

A common problem with an even more common solution.

After you git clone a repo, trying to use grunt will result in the following error:

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide:

This can be very confusing, especially if you in fact do have a Gruntfile.js in your local directory.

The workaround is actually pretty easy: simply type in npm instal && bower install, which will install your project dependencies, and you're all set.