while installing gulp-jshint using node npm following error is showing "gulp-jshint@2.0.4 requires a peer of jshint@2.x but none was installed-UNMET peer dependency". Can anyone help to solve this problem. I am using windows 7 OS.
Asked
Active
Viewed 4,157 times
4
-
1npm install -g jshint – AJ X. Nov 15 '16 at 00:08
-
Thank you very much. It worked!. – Aravindh A Nov 15 '16 at 00:12
3 Answers
19
Try executing the following command npm install --save-dev jshint gulp-jshint
.
If that doesn't work, please check this github issue on their repo.

Tome Pejoski
- 1,582
- 2
- 10
- 34
5
npm install -g jshint
What this error is telling you is that you are missing a dependency for gulp-jshint: in this particular case, jshint
jshint prefers to be installed globally, hence the -g
flag.

AJ X.
- 2,729
- 1
- 23
- 33
2
As of version 2.0 of gulp-jshint module, jshint must be installed with gulp-jshint. https://github.com/spalger/gulp-jshint
npm install jshint gulp-jshint --save-dev

Mahtab Alam
- 1,810
- 3
- 23
- 40