React Native Expo 41应用程序在启用调试remotejs时崩溃



我是新来的本地react,并且有以下问题。当我在没有从设备上启用remotejs-dubug选项的情况下运行应用程序时,它运行得很好。但当我在摇晃设备后启用调试remotejs时,应用程序就会崩溃,控制台中会出现以下错误,应用程序也会崩溃。

(node:1064) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
error Command failed with exit code 1
  • 世博会:41.0.1
  • 反应:16.13.1
  • 本地反应:https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz

通过将C:\Windows\System32\添加到路径变量中,然后重新启动计算机来解决此问题。

最新更新