简体   繁体   English

React Native-Packager随机崩溃,Windows 10 + Android AVD

[英]React Native - Packager randomly crashing, Windows 10 + android avd

Using react-native on Windows 10 + Android Virtual Device emulator. 在Windows 10 + Android虚拟设备模拟器上使用react-native Hot reloading is turned on and everything works just fine. 打开热重装功能,一切正常。

The cycle of code editing and reloading works for the first several edits, and after some edits (different number of edit each time), the packager crashes with the following error message: 代码编辑和重新加载的周期适用于前几次编辑,并且在进行某些编辑(每次编辑次数不同)之后,打包程序崩溃并显示以下错误消息:

[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 . . .

Some details about the project: 有关该项目的一些细节:

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

See also Windows & Android: react native server crashes very often 另请参阅Windows和Android:非常频繁地响应本机服务器崩溃

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM