新手问题 npm install 报错 求教解决办法

twm · March 27, 2014 · Last by hackgyj replied at August 05, 2016 · 17884 hits

用的是 bootstrap3

npm cache clear npm install

..... npm http 304 http://registry.cnpmjs.org/ctype/0.5.2 npm http GET http://registry.cnpmjs.org/hoek/download/hoek-0.8.5.tgz npm http 304 http://registry.cnpmjs.org/sntp npm http 304 http://registry.cnpmjs.org/cryptiles npm http 304 http://registry.cnpmjs.org/combined-stream npm http 304 http://registry.cnpmjs.org/async npm http GET http://registry.cnpmjs.org/delayed-stream/0.0.5 npm http 200 http://registry.cnpmjs.org/hoek/download/hoek-0.8.5.tgz npm http 304 http://registry.cnpmjs.org/delayed-stream/0.0.5 npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.2 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1 npm ERR! peerinvalid Peer [email protected] wants [email protected] npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1 npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4

npm ERR! System Darwin 13.1.0 npm ERR! command "/usr/local/Cellar/node/0.10.26/bin/node" "/usr/local/bin/npm" "install" npm ERR! cwd /Users/xxx/www/xxx npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! code EPEERINVALID npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/xxx/www/xxx/npm-debug.log npm ERR! not ok code 0

万恶的墙。

楼主 grunt 版本太低了,不符合这些组件的 peerDependencies 要求。装个新版本的 grunt

#2 楼 @dead_horse 我的貌似是太高了 grunt v0.4.4

You need to Sign in before reply, if you don't have an account, please Sign up first.