Closed AjayPoshak closed 8 years ago
+1
Hi, everyone.
The problem originates when installing gulp-jshint via npm:
├── UNMET PEER DEPENDENCY jshint@2.x
which is caused by this line in package.json
A workaround for projects using gulp-jshint
is to simply add jshist
to dependencies.
npm install --save-dev jshint
Thanks, issue has been resolved. npm install --save-dev jshint
worked for me.
While I am trying to use jshint with gulp, I am getting below error: `module.js:442 throw err; ^
Error: Cannot find module 'jshint/src/cli' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object. (/Applications/XAMPP/xamppfiles/htdocs/SocialCopsDemo/node_modules/gulp-jshint/src/extract.js:1:79)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)`
And my gulpfile.js is as under: