[react-native] npm install warn require multiple versions to react

I am running a react project and this is package.json dependencies on some third party libraries, but maybe these libraries have not been updated for a long time, they require a different react version. When I install npm I got the warning below:

npm WARN react-native@0.43.3 requires a peer of react@16.0.0-alpha.6 but none was installed.
npm WARN native-base-shoutem-theme@0.1.0 requires a peer of react@>=15.1.0 but none was installed.
npm WARN @shoutem/animation@0.8.10 requires a peer of react@^15.0.0 but none was installed.
npm WARN react-static-container@1.0.1 requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
npm WARN react-test-renderer@15.4.2 requires a peer of react@^15.4.2 but none was installed.

      

I'm not sure if npm can install multiple versions in the same project. So how can I fix this problem?

+3


source to share





All Articles