question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

i get this massive error when i try to install expo, npm installs successfully

See original GitHub issue

C:\Users\Chawki>npm install expo-cli --global

`npm ERR! path C:\Users\Chawki\AppData\Roaming\npm\node_modules\expo-cli\node_modules.xdl.DELETE\binaries\windows\adb\AdbWinUsbApi.dll npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall unlink npm ERR! Error: EPERM: operation not permitted, unlink ‘C:\Users\Chawki\AppData\Roaming\npm\node_modules\expo-cli\node_modules.xdl.DELETE\binaries\windows\adb\AdbWinUsbApi.dll’ npm ERR! { [Error: EPERM: operation not permitted, unlink ‘C:\Users\Chawki\AppData\Roaming\npm\node_modules\expo-cli\node_modules.xdl.DELETE\binaries\windows\adb\AdbWinUsbApi.dll’] npm ERR! cause: npm ERR! { Error: EPERM: operation not permitted, unlink ‘C:\Users\Chawki\AppData\Roaming\npm\node_modules\expo-cli\node_modules.xdl.DELETE\binaries\windows\adb\AdbWinUsbApi.dll’ npm ERR! errno: -4048, npm ERR! code: ‘EPERM’, npm ERR! syscall: ‘unlink’, npm ERR! path: npm ERR! ‘C:\Users\Chawki\AppData\Roaming\npm\node_modules\expo-cli\node_modules\.xdl.DELETE\binaries\windows\adb\AdbWinUsbApi.dll’ }, npm ERR! stack: npm ERR! ‘Error: EPERM: operation not permitted, unlink 'C:\Users\Chawki\AppData\Roaming\npm\node_modules\expo-cli\node_modules\.xdl.DELETE\binaries\windows\adb\AdbWinUsbApi.dll'’, npm ERR! errno: -4048, npm ERR! code: ‘EPERM’, npm ERR! syscall: ‘unlink’, npm ERR! path: npm ERR! ‘C:\Users\Chawki\AppData\Roaming\npm\node_modules\expo-cli\node_modules\.xdl.DELETE\binaries\windows\adb\AdbWinUsbApi.dll’, npm ERR! parent: ‘expo-cli’ } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It’s possible that the file was already in use (by a text editor or antivirus), npm ERR! or that you lack permissions to access it. npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Chawki\AppData\Roaming\npm-cache_logs\2018-11-29T05_34_05_913Z-debug.log`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:43 (5 by maintainers)

github_iconTop GitHub Comments

83reactions
usama-asfarcommented, Nov 29, 2018

restarting the pc fix this

20reactions
Tehsurfercommented, Apr 30, 2019

npm login fixed this error for me, albeit at the expense of making me feel a bit silly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant Install expo cli - react native - Stack Overflow
I solved it by updating nodejs and reinstalled expo-cli with npm i --global expo-cli and it worked. Share.
Read more >
Troubleshooting build errors and crashes - Expo Documentation
The build will succeed but encounter a runtime error, for example, it crashes ... Go to your build details page (find it on...
Read more >
Troubleshooting - React Native
If you run into issue where executing npm run android on macOS throws the above error, try to run sudo chmod +x android/gradlew...
Read more >
npm install error socket timeout - You.com | The AI Search ...
Solution 1. Your command cannot succeed, because npm fails to fetch some module due to internet connection problems. You can try using different...
Read more >
React Native - Environment Setup - Tutorialspoint
Make sure you have Python NodeJS and jdk8 installed in your system if not, install them. In addition to these it is recommended...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found