React Native,react-native初始化,警告

时间:2018-07-18 20:12:14

标签: react-native

我正在使用MacOS High Sierra,

我的npm版本是

6.2.0

我的node.js版本是

v10.6.0

我安装了react-native-cli

react-native-cli@2.0.1

当我这样做

react-native init AwesomeProject

我收到以下警告,

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".

1 个答案:

答案 0 :(得分:0)

找出问题所在,问题在于@babel/core babel-core是不同的程序包...