Failed to install gulp-jshint via npm

when installing gulp -jshint using node npm after the error “gulp -jshint@2.0.4 requires a peer node jshint@2.x , but none of them were installed - a peer dependency UNMET”. Can anyone help solve this problem. I am using windows 7.

+4
source share
3 answers

Try the following command npm install --save-dev jshint gulp-jshint.

If that doesn't work, check out this github issue on your repo.

+17
source

npm install -g jshint

, gulp -jshint: jshint

jshint , , -g.

+4

Starting with version 2.0 of the gulp -jshint module, jshint must be installed with gulp -jshint. https://github.com/spalger/gulp-jshint

npm install jshint gulp-jshint --save-dev
+1
source

Source: https://habr.com/ru/post/1660735/


All Articles