2

尝试安装 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 ]
4

0 回答 0