Unable to install JSHint. Can anyone suggest me what I am doing wrong?
I am using below command.
npm install --save-dev gulp-jshint gulp-jscs jshint-stylish
It is showing the following "gulp-jshint@2.0.4 requires a peer of jshint@2.x but none was installed-UNMET peer dependency"
尝试执行以下命令npm install --save-dev jshint gulp-jshint gulp-jscs jshint-stylish
peer dependency is not installed by npm you must install it manually before. In your case :
npm install --save-dev jshint
Update
Peer dependency is a dependency for a library that is not required. It is considered as a plugin.
You can find more informations here for npm or here for nodejs
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.