-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reload app on android device issue on windows (ERROR EBUSY: resource busy or locked) #13022
Comments
We're cutting down on the number of outstanding issues, in order to allow us to focus. I'm closing this issue because it has been open for over 60 days with no activity. If you think it should still be opened let us know why. PRs are always welcome. |
@Ehsan0007 you must to uninstall the stupid anti-malware win 10 it blocks react native packager from generating app file. Just remove it and you can start app |
i have also same issue, any suggestions would be helpful. Bundling |
has this ever been fixed? |
npm install --save |
@farhan687 @phamhuyhoang95 This is due to the security restrictions which is made on your AppData folder. The packager which starts automatically when building the package does not have admin privileges. So follow the steps to fix it:
The port number has to be same in the commands. |
Description
I have connected android device and then I ran following commands on different terminal tabs:
react-native start
react-native run-android
App is working fine for the first time.
After changing the content in
index.android.js
file, I tap Reload option from dev menu of the device, and then it shows analyzing and start transforming modules for couple of seconds and suddenly it stops with the following error.`
ERROR EBUSY: resource busy or locked,
rename 'C:\Users\Farhan\AppData\Local\Temp\react-native-packager-cache-bc7c6964\1f\ad664aAppRegistry.js.meta.4164767065' -> 'C:\Users\Farhan\AppData\Local\Temp\react-native-packager-cache-bc7c6964\1f\ad664aAppRegistry.js.meta'
{"errno":-4082,"code":"EBUSY","syscall":"rename","path":"C:\Users\Farhan\AppData\Local\Temp\react-native-packager-cache-bc7c6964\1f\ad664aAppRegistry.js.meta.4164767065","dest":"C:\Users\Farhan\AppData\Local\Temp\react-native-packager-cache-bc7c6964\1f\ad664aAppRegistry.js.meta"}
Error: EBUSY: resource busy or locked, rename 'C:\Users\Farhan\AppData\Local\Temp\react-native-packager-cache-bc7c6964\1f\ad664aAppRegistry.js.meta.4164767065' -> 'C:\Users\Farhan\AppData\Local\Temp\react-native-packager-cache-bc7c6964\1f\ad664aAppRegistry.js.meta'
at Error (native)
at Object.fs.renameSync (fs.js:809:18)
at writeFileSync (E:\Work\appbaseWork\native\HelloWorld\node_modules\write-file-atomic\index.js:95:8)
at Object.writeSync (E:/Work/appbaseWork/native/HelloWorld/node_modules/react-native/packager/src/lib/TransformCache.js:138:3)
at _getTransformedCode (E:/Work/appbaseWork/native/HelloWorld/node_modules/react-native/packager/src/node-haste/Module.js:296:22)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
`
It looks like npm issue with windows. It would be very helpful if anybody can provide me solution or any helpful link to get rid off this issue.
Reproduction
Steps:
On windows 10
react-native start
react-native run-android
Additional Information
The text was updated successfully, but these errors were encountered: