4

while installing gulp-jshint using node npm following error is showing "[email protected] requires a peer of [email protected] but none was installed-UNMET peer dependency". Can anyone help to solve this problem. I am using windows 7 OS.

2
  • 1
    npm install -g jshint Commented Nov 15, 2016 at 0:08
  • Thank you very much. It worked!. Commented Nov 15, 2016 at 0:12

3 Answers 3

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.

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.