0
在Windows 10 + Android虛擬設備模擬器上使用react-native
。熱重新打開,一切正常。React Native - Packager隨機崩潰,Windows 10 + android avd
代碼編輯的週期和重裝作品前幾個編輯,並進行一些編輯(不同數量的編輯的每一次)後,封裝崩潰,並顯示以下錯誤消息:
[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 . . .
的一些細節項目:
- 操作系統:Windows 10
- Android SDK中經理版本25.1.7
- 虛擬設備配置完全一樣描述在這裏:https://facebook.github.io/react-native/img/react-native-android-studio-avd-windows.png
- 運行打包程序使用
react-native run android
從管理員cmd
。