[英]Unable to install gulp-jshint through npm
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". 当使用节点npm安装gulp-jshint时,错误显示“gulp-jshint@2.0.4需要jshint @ 2.x的对等体,但没有安装 - UNMET对等体依赖”。 Can anyone help to solve this problem.
任何人都可以帮助解决这个问题。 I am using windows 7 OS.
我正在使用Windows 7操作系统。
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
这个错误告诉你的是你缺少gulp-jshint的依赖:在这种特殊情况下,
jshint
jshint prefers to be installed globally, hence the -g
flag. jshint更喜欢全局安装,因此
-g
标志。
As of version 2.0 of gulp-jshint module, jshint must be installed with gulp-jshint. 从gulp-jshint模块2.0版开始,必须使用gulp-jshint安装jshint。 https://github.com/spalger/gulp-jshint
https://github.com/spalger/gulp-jshint
npm install jshint gulp-jshint --save-dev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.