can`t install expo-cli (npm ERR! errno -4048 )

10371 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “-g” “expo-cli@3.7.1”

10372 verbose node v13.12.0

10373 verbose npm v6.14.4

10374 error code EPERM

10375 error syscall unlink

10376 error path C:\Users\Artist\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll

10377 error errno -4048

10378 error Error: EPERM: operation not permitted, unlink ‘C:\Users\Artist\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’

10378 error [OperationalError: EPERM: operation not permitted, unlink ‘C:\Users\Artist\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’] {

10378 error cause: [Error: EPERM: operation not permitted, unlink ‘C:\Users\Artist\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’] {

10378 error errno: -4048,

10378 error code: ‘EPERM’,

10378 error syscall: ‘unlink’,

10378 error path: ‘C:\Users\Artist\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’

10378 error },

10378 error stack: “Error: EPERM: operation not permitted, unlink ‘C:\Users\Artist\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’”,

10378 error errno: -4048,

10378 error code: ‘EPERM’,

10378 error syscall: ‘unlink’,

10378 error path: ‘C:\Users\Artist\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\AdbWinApi.dll’,

10378 error parent: ‘expo-cli’

10378 error }

10379 error The operation was rejected by your operating system.

10379 error It’s possible that the file was already in use (by a text editor or antivirus),

10379 error or that you lack permissions to access it.

10379 error

10379 error If you believe this might be a permissions issue, please double-check the

10379 error permissions of the file and its containing directories, or try running

10379 error the command again as root/Administrator.

10380 verbose exit [ -4048, true ]

Hi. It looks like something it not giving you permission to delete certain files from the expo-cli package. (Presumably an older version?)

Maybe you installed the previous version as Administrator and now you’re trying to install the new version as a normal user?

Otherwise, maybe something has the file(s) open? e.g. are you currently running expo start or adb etc? Another thing that could potentially have the dll open is antivirus software.

The error was shown in the VS code terminal. When launched from the standard terminal, everything went well

1 Like

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