i get this massive error when i try to install expo, npm installs successfully
See original GitHub issueC:\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:
- Created 5 years ago
- Comments:43 (5 by maintainers)

Top Related StackOverflow Question
restarting the pc fix this
npm loginfixed this error for me, albeit at the expense of making me feel a bit silly.