需要grunt @> = 0.4.0的同伴 [英] requires a peer of grunt@>=0.4.0

查看:179
本文介绍了需要grunt @> = 0.4.0的同伴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会出现以下错误?我的咕unt声版本是> v0.4.0

Why do I get the error below? My grunt version is > v0.4.0

npm install grunt-contrib-concat --save-dev

+-未达到对等状态grunt @> = 0.4.0

+-- UNMET PEER DEPENDENCY grunt@>=0.4.0

错误消息:

.. Projects \ Hartz \ Hartz> npm install grunt-contrib-concat --save-dev Hartz@1.0.0 C:.. \ Projects \ Hartz \ Hartz +-对等的依赖grunt @> = 0.4.0`-grunt-contrib-concat@1.0.1

..Projects\Hartz\Hartz>npm install grunt-contrib-concat --save-dev Hartz@1.0.0 C:..\Projects\Hartz\Hartz +-- UNMET PEER DEPENDENCY grunt@>=0.4.0 `-- grunt-contrib-concat@1.0.1

npm WARN grunt-contrib-jshint@1.0.0需要对等grunt @> = 0.4.0 但没有安装. npm WARN grunt-contrib-concat@1.0.1需要一个 grunt @> = 0.4.0的对等节点,但未安装. npm WARN Hartz@1.0.0否 存储库字段.

npm WARN grunt-contrib-jshint@1.0.0 requires a peer of grunt@>=0.4.0 but none was installed. npm WARN grunt-contrib-concat@1.0.1 requires a peer of grunt@>=0.4.0 but none was installed. npm WARN Hartz@1.0.0 No repository field.

咕unt声-V

grunt-cli v1.2.0
grunt v1.0.1

grunt-cli v1.2.0
grunt v1.0.1

推荐答案

在本地(而非全局)安装grunt.

Install grunt locally (not globally).

npm install grunt --save-dev

应该会有所帮助,因为grunt-contrib-concat正在寻找本地安装的grunt模块.

It should help, because grunt-contrib-concat is looking for locally installed grunt module.

这篇关于需要grunt @> = 0.4.0的同伴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆