Gulp Error: Cannot find module 'jshint/src/cli' Gulp Error: Cannot find module 'jshint/src/cli' javascript javascript

Gulp Error: Cannot find module 'jshint/src/cli'


You need to install jshint as well, that will sort out the issue.

> npm install --save-dev jshint gulp-jshint


It turns out I need to use npm install --save-dev jshint gulp-jshint instead of npm install gulp-jshint --save-dev as the tutorial stated. Discussion around this was found at https://github.com/spalger/gulp-jshint/issues/131 with massive thanks to @user3042437 for suppling the link.


If you still get the error after you put in the correct syntax above,(npm install --save-dev jshint gulp-jshint), which works.

Before you run the install again, go into your package.json file and remove the lines for jshint and gulp-jshint before you run the install, make sure you edit you package.json to remove the lines that call jshint and gulp-jshint, otherwise, the error will persist.