N
N
Nikita Andreevich2020-01-26 01:26:35
System administration
Nikita Andreevich, 2020-01-26 01:26:35

Error while updating Expo, what could be the problem?

Good day.
I work with react native expo , during the next project launch, a notification popped up in the console about updating expo.
Began to update, and errors of access rights and other things flew. Climbing on the forums, I came across such a statement that the problem may not be related to expo itself, namely, you need to deal with NPM. I didn’t find any tips on the Internet, but unfortunately they didn’t help. And I completely deleted the node and cleared the cache, constantly errors.
And now, in fact, Expo is not installed at all.
Here are the screenshots of the errors:

npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: [email protected]<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of [email protected]
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN @expo/[email protected] requires a peer of [email protected]^1.10.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe'
npm ERR!  [OperationalError: EPERM: operation not permitted, unlink 'C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, unlink 'C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'unlink',
npm ERR!     path: 'C:\\Users\\nikba\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\.xdl.DELETE\\binaries\\windows\\adb\\adb.exe'
npm ERR!   },
npm ERR!   stack: "Error: EPERM: operation not permitted, unlink 'C:\\Users\\nikba\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\.xdl.DELETE\\binaries\\windows\\adb\\adb.exe'",
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'C:\\Users\\nikba\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\.xdl.DELETE\\binaries\\windows\\adb\\adb.exe',
npm ERR!   parent: 'expo-cli'
npm ERR! }
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.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\nikba\AppData\Roaming\npm-cache\_logs\2020-01-25T22_25_07_607Z-debug.log

5e2cc08b6be1e178005915.png
LOG
4516 timing action:finalize Completed in 212069ms
4517 verbose unlock done using C:\Users\nikba\AppData\Roaming\npm-cache\_locks\staging-837245f3607889fe.lock for C:\Users\nikba\AppData\Roaming\npm\node_modules\.staging
4518 timing stage:rollbackFailedOptional Completed in 76ms
4519 timing stage:runTopLevelLifecycles Completed in 469647ms
4520 warn @expo/[email protected] requires a peer of [email protected]^1.10.0 but none is installed. You must install peer dependencies yourself.
4521 verbose stack Error: EPERM: operation not permitted, unlink 'C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe'
4522 verbose cwd C:\Windows\system32
4523 verbose Windows_NT 10.0.18363
4524 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "expo-cli" "--global"
4525 verbose node v12.14.1
4526 verbose npm  v6.13.4
4527 error code EPERM
4528 error syscall unlink
4529 error path C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe
4530 error errno -4048
4531 error Error: EPERM: operation not permitted, unlink 'C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe'
4531 error  [OperationalError: EPERM: operation not permitted, unlink 'C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe'] {
4531 error   cause: [Error: EPERM: operation not permitted, unlink 'C:\Users\nikba\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\.xdl.DELETE\binaries\windows\adb\adb.exe'] {
4531 error     errno: -4048,
4531 error     code: 'EPERM',
4531 error     syscall: 'unlink',
4531 error     path: 'C:\\Users\\nikba\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\.xdl.DELETE\\binaries\\windows\\adb\\adb.exe'
4531 error   },
4531 error   stack: "Error: EPERM: operation not permitted, unlink 'C:\\Users\\nikba\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\.xdl.DELETE\\binaries\\windows\\adb\\adb.exe'",
4531 error   errno: -4048,
4531 error   code: 'EPERM',
4531 error   syscall: 'unlink',
4531 error   path: 'C:\\Users\\nikba\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\.xdl.DELETE\\binaries\\windows\\adb\\adb.exe',
4531 error   parent: 'expo-cli'
4531 error }
4532 error The operation was rejected by your operating system.
4532 error It's possible that the file was already in use (by a text editor or antivirus),
4532 error or that you lack permissions to access it.
4532 error
4532 error If you believe this might be a permissions issue, please double-check the
4532 error permissions of the file and its containing directories, or try running
4532 error the command again as root/Administrator.
4533 verbose exit [ -4048, true ]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shohruh Shaimardonov, 2020-01-26
@NikitosAndreevich

Solution found. It was necessary to pay attention to adb.exe earlier. Apparently tired, the head does not cut

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question