我正在使用 React Native init 来初始化我的项目,并且我收到了一些警告,如果我现在不处理它们,我确信这些警告会在后面咬我。粗体字是相关消息。我不完全确定该如何处理它们,任何人都可以告诉我如何解决这个问题/如果我做错了什么而收到这些消息/警告?初学者友好/对术语答案的了解将不胜感激,因为我是本地反应新手
纱线添加 v0.27.5
信息 未找到锁定文件。
[1/4] 正在解析包...
警告反应本机>[电子邮件受保护] /cdn-cgi/l/email-protection:connect 2.x 系列已弃用
[2/4] 正在获取包裹...
[3/4] 链接依赖项...
警告“react-n[电子邮件受保护] /cdn-cgi/l/email-protection“有未满足的同伴依赖性”[电子邮件受保护] /cdn-cgi/l/email-protection".
这个react-native init 命令也花费很长时间(每次使用约5 分钟)。上述警告是否导致启动时间过长,还是其他原因?
info只是一些信息,不是问题
而对于两人来说warning:
-
已弃用连接
about the deprecated connect version,I came up with too, it's because react-native depends on connect, and react-native's latest version is 0.49.3, it use [email protected] /cdn-cgi/l/email-protection,a little bit deprecated, and there's someone made a pr about this problem, Github:pr https://github.com/facebook/react-native/pull/16380
,but has not been merged because of some test coverage, so now just ignore this warning;
-
未满足的同伴依赖性
it's related to some deprecated package.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)