Reputation: 55
I am trying to integrate Travis CI with a repository(forked on github). Everything is fine but Travis CI website is showing the following error under Job.
Fatal error: Unable to find local grunt.
The command "grunt build" failed and exited with 99 during .
I have added npm install in my .travis.yml
and also defined script in my package.json
file.
The grunt dependencies and gruntfile.js has also been properly set up.
Upvotes: 0
Views: 370
Reputation: 3227
Unable to find local grunt.
Is pretty explicit. Just add grunt to the dependencies of your package.json or run
npm i --save grunt
EDIT: OP's problem was actually due to a missing package.json
at the root of the project.
Upvotes: 1