我是 React Native 的新手,我正在尝试按照官方文档中的描述在 Windows 8.1 上设置我的开发环境。
但我有一个问题
脚步 :
react-native init AwesomeProject
cd AwesomeProject
react-native start
Run Code Online (Sandbox Code Playgroud)
该应用程序无法正确启动,我遇到此错误:
2020-05-26T18:02:48,578: [cli] unable to talk to your watchman on \\.\pipe\watchman-ME! (No such file or directory)
Watchman: watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2020-05-26T18:02:48,578: [cli] unable to talk to your watchman on \\.\pipe\watchman-ME! (No such file or directory)
Run Code Online (Sandbox Code Playgroud)
所以我想问题出在watchman
我发现这个错误的路径很奇怪(\\.\pipe\watchman-ME!),因为在执行时react-native info,我得到以下结果:
react-native init AwesomeProject
cd AwesomeProject
react-native start
Run Code Online (Sandbox Code Playgroud)
我的配置正确吗?因为我阅读了其他帖子、问题,最好的建议是重新安装 watchman 并重新启动。我做了很多次但没有改变。如果这很重要,我下载了最新的 CI 版本,将其解压并将其添加到 …
我正在使用react-native 开发android 应用程序。直到今天一切都很正常
脚步
npx react-native run-android,构建成功,但应用程序立即崩溃。也许重要的注意事项:
0.61.5> Task :app:installDebug
07:48:13 V/ddms: execute: running am get-config
07:48:14 V/ddms: execute 'am get-config' on 'GBT4C18C21006873' : EOF hit. Read: -1
07:48:14 V/ddms: execute: returning
Installing APK 'app-debug.apk' on 'JSN-L22 - 10' for app:debug
07:48:14 D/app-debug.apk: Uploading app-debug.apk onto device 'GBT4C18C21006873'
07:48:14 …Run Code Online (Sandbox Code Playgroud)