-
Notifications
You must be signed in to change notification settings - Fork 478
adb.exe is left running in the background (npm install -g expo-cli
fails with "EPERM: operation not permitted, unlink '...\adb.exe')
#283
Comments
I am getting the same error. I tried updating node and npm and then running as administrator but the error still appears. |
This has caught me out as well. It looks like if you've run
That's exactly what I did, and now I'm up to date. |
npm install -g expo-cli
gives errornpm install -g expo-cli
fails with "EPERM: operation not permitted, unlink '...\adb.exe')
Will try this when I get home, thanks. |
Thank you so much! It worked fine for me. |
ya the solution work perfectly tq!! |
This is a duplicate of #175. The above is merely a workaround. Expo CLI should make sure to kill the running adb process when itself exists. |
I agree, it's not super handy to have to kill the process on Windows before updating. It took me a while to find solution here, thanks to @IrregularShed. Until I understood it was not about file permission on Windows 10 (I was running as administrator or root if you like), I was a bit lost. You just have to kill adb.exe process in task runner before updating expo-cli. |
In my case, this issue appears to have only shown up when trying to uninstall exp-cli. Installing it (in order to update) completed without errors, but the old version was still being used somehow (confirmed with 'expo -V'). I had to kill adb.exe, then remove expo-cli, then install expo-cli (and note the old version was still installed and being used by running 'expo -V', even though the new version installed without errors), then re-remove expo-cli, then re-re-install expo-cli. |
Description
I receive an error when running
npm install -g expo-cli
Expected Behavior
For there not to be an error
Observed Behavior
Environment
cant run because expo-cli will not install
The text was updated successfully, but these errors were encountered: