Доброго времени суток.
Работаю с react native expo , во время очередного запуска проекта,в консоли выскочило уведомление об обновлении expo.
Начал обновлять ,и полетели ошибки прав доступа и прочего. Полазив на форумах, столкнулся с таким утверждением ,что проблема может быть никак не связана с самим expo, а именно надо разбираться с NPM. Каких только советов я не нашел на просторах интернета,но все к сожалению не помогли.И удалял полностью ноду,и очищал кеш, постоянно ошибки.
И теперь собственно говоря Expo совсем не устанавливается.
Вот собственно скрины ошибок :
npm WARN deprecated joi@14.0.4: 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 core-js@2.6.11: core-js@<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 core-js@3.
npm WARN deprecated joi@11.4.0: 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 hoek@4.2.1: 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 topo@2.0.2: 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 hoek@6.1.3: 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 topo@3.0.3: 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/image-utils@0.2.12 requires a peer of sharp-cli@^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
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/image-utils@0.2.12 requires a peer of sharp-cli@^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 ]