NPM安装依赖性问题:代码EPEERINVALID

时间:2015-08-09 07:11:22

标签: node.js npm gulp browserify

我遇到了安装问题

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "d:\\Program Files\\nodejs\\node.exe" "d:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "bootstrap-datetimepicker" "--save
-dev"
npm ERR! node v0.12.4
npm ERR! npm  v2.11.1
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDepend
encies requirements!
npm ERR! peerinvalid Peer grunt-contrib-nodeunit@0.3.3 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-watch@0.6.1 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-jshint@0.10.0 wants grunt@~0.4.0

1 个答案:

答案 0 :(得分:0)

实际上很明显,你遇到了一些依赖问题。您尝试安装的软件包不满足 grunt的当前版本:

  

npm ERR! peerinvalid Peer grunt-contrib-nodeunit@0.3.3想要grunt@~0.4.0

正如错误消息和grunt-contrib-nodeunit的repo中所见,此程序包需要0.4.0:

  

此插件需要Grunt~0.4.0

因此,您只需更新 grunt 版本:)