【发布时间】:2014-08-08 00:26:51
【问题描述】:
我正试图找出一个对等依赖问题,我觉得一切都很好......
我的package.json 有:
, "devDependencies" : {
"gulp-watchify" : "^0.2.0"
, "watchify" : "^0.10.2"
}
而gulp-watchify/package.json 有:
"peerDependencies": {
"watchify": "^0.6.1"
},
0.10.2 稳定^0.6.1,不是吗?那么为什么npm 抱怨:
npm ERR! peerinvalid The package watchify does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer gulp-watchify@0.2.0 wants watchify@^0.6.1
npm ERR! System Darwin 14.0.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd <path redacted>
npm ERR! node -v v0.11.12
npm ERR! npm -v 1.4.3
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! <path redacted>/npm-debug.log
npm ERR! not ok code 0
???
【问题讨论】: