我对反应本机并不熟悉。我遵循了Facebook的所有步骤--本地网站react。但是当我发起app.Please的时候,我面临着这些问题,帮助我如何解决这个问题。在启动我的第一个应用程序时,它显示了一些警告。
错误是:
npm WARN @babel/plugin-transform-parameters@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-spread@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-for-of@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-computed-properties@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-regenerator@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-shorthand-properties@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-template-literals@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-class-properties@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-object-rest-spread@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-flow@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-syntax-jsx@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react-native@3.2.1 requires a peer of eslint@^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-sticky-regex@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/plugin-transform-unicode-regex@7.0.0-beta.40 requires a peer of @babel/core@7.0.0-beta.40 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.0 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
发布于 2018-04-22 12:55:42
您可以运行以下命令: npm @babel/core@7.0.0-beta.40 eslint@^3.17.0 AC.26 ^4.0.0
如果缺少任何其他对等点,则可以运行npm安装,然后运行缺失的对等依赖项。
在每个对等点之间添加一个空格。
参考资料: npm安装抱怨有关对等代理。https://github.com/angular/angular/issues/5746 (2018年4月22日访问)
https://stackoverflow.com/questions/49965539
复制相似问题