[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
npm reactjs react-native npm-install


source to share


No one has answered this question yet

Check out similar questions:

1988
Find the version of the installed npm package
1688
What is the -save option for npm install?
1544
How can I upgrade NodeJS and NPM to the next versions?
782
How do I install an npm package from GitHub directly?
116
How to solve npm UNEPT PEER DEPENDENCY
6
npm WARN response-native-maps@0.14.0 requires equal response @> = 15.4.0, but none was installed
3
Installation error
1
React-bootstrap doesn't install
0
Can't install React-Intl using NPM



All Articles
Loading...
X
Show
Funny
Dev
Pics