反应多个版本的peerDependency

时间:2018-11-25 06:33:48

标签: reactjs npm react-dom peer-dependencies

嗨,我创建了一个项目,当我运行

时,该项目在package.json中具有一定的依赖性。
npm install

它给我警告

npm WARN formsy-react@0.19.5 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-css-super-themr@2.2.0 requires a peer of react@^0.14.0 || ^15.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN react-input-autosize@0.6.13 requires a peer of react@^0.14 || ^15.0.0-rc || ^15.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-select@0.9.1 requires a peer of react@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-select@0.9.1 requires a peer of react-dom@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-switch-button@1.1.2 requires a peer of react@^0.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN jade-react-loader@1.0.2 requires a peer of react@0 but none is installed. You must install peer dependencies yourself.
npm WARN react-jade@2.5.0 requires a peer of react@>=0.12.0 <0.15.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-select@0.9.1 requires a peer of react@^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-select@0.9.1 requires a peer of react-dom@^0.14.1 but none is installed. You must install peer dependencies yourself.

如何解决同一个程序包的多个对等依赖性。有人可以指导吗?

0 个答案:

没有答案