安装react-native-cli时出错

时间:2015-03-27 02:02:28

标签: npm react-native

'在尝试安装react-native-cli时遇到许多未满足的依赖性警告和错误。这是npm-debug.log的最后一位:

...
91 warn unmet dependency which is version 0.10.25-1
92 verbose stack Error: The package webpack does not satisfy its siblings' peerDependencies requirements!
92 verbose stack     at /usr/local/lib/node_modules/npm/lib/install.js:103:32
92 verbose stack     at /usr/local/lib/node_modules/npm/lib/install.js:225:5
92 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:138:5
92 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
92 verbose stack     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
92 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
92 verbose stack     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
92 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
92 verbose stack     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
92 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
93 verbose cwd /Users/SM
94 error Darwin 11.4.2
95 error argv "node" "/usr/local/bin/npm" "install" "-g" "react-native-cli"
96 error node v0.10.33
97 error npm  v2.1.7
98 error code EPEERINVALID
99 error peerinvalid The package webpack does not satisfy its siblings' peerDependencies requirements!
99 error peerinvalid Peer webpack-dev-middleware@1.0.10 wants webpack@1.x
100 verbose exit [ 1, true ]

0 个答案:

没有答案