My grunt
task seems to be running perfectly fine, but every time I run it I'm getting this error:
Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'underscore'
Is there any way to find out why this is happening? I can see the /grunt-contrib-jshint
directory is in the /node_modules
directory. Is there any reason it can't find the underscore
module? I've tried running npm install
but I still get the same error when I run grunt.
Any ideas? Any help is appreciated.
Do the following:
npm update
npm install underscore
If that doesn't work do the following.
rm -rf node_modules
npm install -d
npm update
you can use npm update
I test this command and this answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With