Cannot Install new Version of Expo cli

I possibly have the latest SDK and i am using Android. The Problem occurring is that I cannot update my Expo cli. I was using version 3.4.1 and green bar said that 3.8.0 is available.
As i run the command ‘expo install -g expo-cli’, it give the same error always of finalize webpack and it shows as:

npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink ‘C:\Users\sufya\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’
npm ERR! { [Error: EPERM: operation not permitted, unlink ‘C:\Users\sufya\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’]
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, unlink ‘C:\Users\sufya\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘unlink’,
npm ERR! path:
npm ERR! ‘C:\Users\sufya\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’ },
npm ERR! stack:
npm ERR! ‘Error: EPERM: operation not permitted, unlink ‘C:\Users\sufya\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’’,
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘unlink’,
npm ERR! path:
npm ERR! ‘C:\Users\sufya\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\AdbWinApi.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\sufya\AppData\Roaming\npm-cache_logs\2019-11-19T11_25_59_077Z-debug.log

Please resolve this issue and it happens mostly when i update the expo version.

Hi

The EPERM errors look like permission errors. e.g. you installed expo-cli as an Administrator and now you are trying to upgrade it as a normal user?

See also the following post:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.