简体   繁体   English

如何使用npm安装gulp jshint?

[英]How to install gulp jshint using npm?

Unable to install JSHint. 无法安装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" 它显示以下内容“ gulp-jshint@2.0.4需要一个jshint@2.x的同级,但没有安装-UNMET对等依赖项”

尝试执行以下命令npm install --save-dev jshint gulp-jshint gulp-jscs jshint-stylish

peer dependency is not installed by npm you must install it manually before. npm未安装对等依赖项,您必须在之前手动安装它。 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 您可以在此处找到有关npm的更多信息在此处找到nodejs的更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM