reactjs - 在 Windows 上,react-native init 不适用于 React-native 0.57.1

标签 reactjs react-native react-native-cli

我在Windows 10上使用react-native-cli 2.0.1和react-native 0.57.1​​。

但是,当我使用react-native init projectname 创建一个项目并尝试使用react-native run-android 运行它时,我收到此错误: enter image description here

除了第一个步骤之外,我尝试了它提到的步骤,因为当我尝试运行它时,我只是得到 watchman: command not found。

最佳答案

yarn 添加@babel/runtime。 这将解决该问题。

关于reactjs - 在 Windows 上,react-native init 不适用于 React-native 0.57.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52640476/

相关文章:

javascript - 如何在 React Native Project 中将本地文本文件加载到字符串变量中?

google-maps - react 原生谷歌地图替代品

android - react native 相机 Gradle 同步失败 : Could not find method google() for arguments [] on repository container

javascript - React-native 搜索栏 - 错误 : undefined is not a function (near '... this.state.books.filter...' )

react-native - 语法错误 : You can only use Class Properties when the 'classProperties' plugin is enabled

javascript - Axios PUT 请求到服务器

javascript - 将 Firebase 配置传递给组件

javascript - 将 useEffect 与事件监听器结合使用

javascript - 如何观察 react-native node_modules 的变化

javascript - 错误 : `fsevents` unavailable (this watcher can only be used on Darwin)