简体   繁体   中英

React Native, react-native init, Warnings

I'm using MacOS High Sierra,

My npm version is

6.2.0

My node.js version is

v10.6.0

I installed the react-native-cli,

react-native-cli@2.0.1

When I do

react-native init AwesomeProject

I get the following warnings,

warning "react-native > metro-babel-register > 
@babel/plugin-proposal-optional-chaining@7.0.0-beta.47" 
has unmet peer dependency "@babel/core@7.0.0-beta.47".
warning "react-native > metro-babel-register > 
@babel/plugin-proposal-optional-chaining > @babel/plugin- 
syntax-optional-chaining@7.0.0-beta.47" has unmet peer 
dependency "@babel/core@7.0.0-beta.47".
warning " > react-native@0.56.0" has unmet peer dependency 
"react@16.4.1".

弄清楚问题所在,问题在于存在@ babel / corebabel-core这两个不同的软件包...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM