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

时间:2022-05-03
本文章向大家介绍Gulp Error: Cannot find module 'jshint/src/cli',主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

I'm following sitepoint's An introduction to Gulp.js, but I'm stuck on step four, when I try to run gulp jshint I get "Error: Cannot find module 'jshint/src/cli'"

I've no idea what's causing this, which is why I'm asking here. Below are a couple of screen grabs to help with the issue.

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

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