【问题标题】:React Native - Packager randomly crashing, Windows 10 + android avdReact Native - Packager 随机崩溃,Windows 10 + android avd
【发布时间】:2016-11-29 18:27:49
【问题描述】:

在 Windows 10 + Android 虚拟设备模拟器上使用 react-native。热重载已开启,一切正常。

代码编辑和重新加载的循环适用于前几次编辑,在一些编辑之后(每次编辑次数不同),打包器崩溃并显示以下错误消息:

[Hot Module Replacement] Sending HMR update to client (14:45:24:193)
[Hot Module Replacement] Sending HMR update to client (14:45:24:195)
[Hot Module Replacement] Client connected
[2:45:25 PM] <START> request:/index.android.bundle?platform=android&dev=true&hot=true&minify=false
[2:45:25 PM] <END>   request:/index.android.map?platform=android&dev=true&hot=true&minify=false (2660ms)
[2:45:25 PM] <END>   request:/index.android.bundle?platform=android&dev=true&hot=true&minify=false (252ms)
[Hot Module Replacement] Client connected
 ERROR  EPERM: operation not permitted, lstat 'c:\dev\music\index.android.js___jb_old___'
{"errno":-4048,"code":"EPERM","syscall":"lstat","path":"c:\\dev\\music\\index.android.js___jb_old___"}
Error: EPERM: operation not permitted, lstat 'c:\dev\music\index.android.js___jb_old___'
    at Error (native)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
Press any key to continue . . .

项目的一些细节:

【问题讨论】:

    标签: javascript android react-native windows-10 avd


    【解决方案1】:

    尝试禁用“安全写入”(Settings | Appearance &amp; Behavior | System Settings, 'Use "safe write" (save changes to temporary files first)) - 有帮助吗?

    另见Windows & Android: react native server crashes very often

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-04-28
      • 2013-04-21
      • 1970-01-01
      • 2020-07-28
      • 2022-01-14
      • 2013-12-24
      • 2021-02-21
      相关资源
      最近更新 更多