【发布时间】:2019-12-31 02:24:30
【问题描述】:
当我初始化一个新的 React Native 项目时,我收到了几个警告,例如
warning react-native > create-react-class > fbjs > core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
和
warning "react-native > metro-react-native-babel-transformer@0.54.1" has unmet peer dependency "@babel/core@*".
当我寻找这些警告的解决方案时,人们建议在给定项目中安装必要的软件包。我是否应该尝试在全球范围内安装东西以避免这些警告?或者这些警告只是 React Native 使用的包的错,我没有办法/不需要避免它们?
【问题讨论】:
标签: reactjs react-native npm package package-managers