not able to install expo-image-picker

This issue has been created since 2022-09-22.

Description

i have tried to install many times but the problem continues the same, even the '--force' command doesn't work in here, ill show you the error please take a look.

› Installing 1 SDK 46.0.0 compatible native module using npm

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! [email protected]"18.0.0" from the root project
npm ERR! peer [email protected]"*" from @react-navigation/[email protected]
npm ERR! node_modules/@react-navigation/core
npm ERR! @react-navigation/[email protected]"^6.3.0" from @react-navigation/[email protected]
npm ERR! node_modules/@react-navigation/native
npm ERR! @react-navigation/[email protected]"^6.0.12" from the root project
npm ERR! 2 more (@react-navigation/elements, @react-navigation/native-stack)
npm ERR! 12 more (@react-navigation/elements, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer [email protected]"^18.2.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! peer [email protected]"^17.0.2 || ^18.0.0" from [email protected]
npm ERR! node_modules/react-native-web
npm ERR! [email protected]"^0.18.9" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer [email protected]"^18.2.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! peer [email protected]"^17.0.2 || ^18.0.0" from [email protected]
npm ERR! node_modules/react-native-web
npm ERR! [email protected]"^0.18.9" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\aryaa\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aryaa\AppData\Local\npm-cache_logs\2022-09-22T07_50_05_603Z-debug-0.log

Error: npm exited with non-zero code: 1
Error: npm exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\aryaa\Clean\[email protected]\spawn-async\build\spawnAsync.js:52:23)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at cp.emit (C:\Users\aryaa\Clean\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1091:16)
at Socket. (node:internal/child_process:449:11)
at Socket.emit (node:events:513:28)
at Pipe. (node:net:313:12)
...
at spawnAsync (C:\Users\aryaa\Clean\[email protected]\spawn-async\build\spawnAsync.js:17:21)
at NpmPackageManager._runAsync (C:\Users\aryaa\Clean\[email protected]\package-manager\build\NodePackageManagers.js:133:51)
at NpmPackageManager.installAsync (C:\Users\aryaa\Clean\[email protected]\package-manager\build\NodePackageManagers.js:59:20)
at NpmPackageManager.addWithParametersAsync (C:\Users\aryaa\Clean\[email protected]\package-manager\build\NodePackageManagers.js:72:24)
at async installPackagesAsync (C:\Users\aryaa\Clean\[email protected]\cli\build\src\install\installAsync.js:82:5)

Version

2.0.1

Output of npx react-native info

PS C:\Users\aryaa\Clean> npx react-native info
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.22000
CPU: (8) x64 AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 1.23 GB / 5.95 GB
Binaries:
Node: 18.9.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.19.1 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-212.5712.43.2112.8815526
Visual Studio: Not Found
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.5 => 0.69.5
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

i was trying to install npx expo install expo-image-picker, but the terminals keeps showing errors and stop the executions, i have even tried the --force command to run but then it shows that it didn't recognize it

Snack, code example, screenshot, or link to a repository

› Installing 1 SDK 46.0.0 compatible native module using npm

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! [email protected]"18.0.0" from the root project
npm ERR! peer [email protected]"*" from @react-navigation/[email protected]
npm ERR! node_modules/@react-navigation/core
npm ERR! @react-navigation/[email protected]"^6.3.0" from @react-navigation/[email protected]
npm ERR! node_modules/@react-navigation/native
npm ERR! @react-navigation/[email protected]"^6.0.12" from the root project
npm ERR! 2 more (@react-navigation/elements, @react-navigation/native-stack)
npm ERR! 12 more (@react-navigation/elements, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer [email protected]"^18.2.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! peer [email protected]"^17.0.2 || ^18.0.0" from [email protected]
npm ERR! node_modules/react-native-web
npm ERR! [email protected]"^0.18.9" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer [email protected]"^18.2.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! peer [email protected]"^17.0.2 || ^18.0.0" from [email protected]
npm ERR! node_modules/react-native-web
npm ERR! [email protected]"^0.18.9" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\aryaa\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aryaa\AppData\Local\npm-cache_logs\2022-09-22T07_50_05_603Z-debug-0.log

Error: npm exited with non-zero code: 1
Error: npm exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\aryaa\Clean\[email protected]\spawn-async\build\spawnAsync.js:52:23)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at cp.emit (C:\Users\aryaa\Clean\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1091:16)
at Socket. (node:internal/child_process:449:11)
at Socket.emit (node:events:513:28)
at Pipe. (node:net:313:12)
...
at spawnAsync (C:\Users\aryaa\Clean\[email protected]\spawn-async\build\spawnAsync.js:17:21)
at NpmPackageManager._runAsync (C:\Users\aryaa\Clean\[email protected]\package-manager\build\NodePackageManagers.js:133:51)
at NpmPackageManager.installAsync (C:\Users\aryaa\Clean\[email protected]\package-manager\build\NodePackageManagers.js:59:20)
at NpmPackageManager.addWithParametersAsync (C:\Users\aryaa\Clean\[email protected]\package-manager\build\NodePackageManagers.js:72:24)
at async installPackagesAsync (C:\Users\aryaa\Clean\[email protected]\cli\build\src\install\installAsync.js:82:5)

cortinico wrote this answer on 2022-09-22

Hi @amanryn87
Thanks for reporting this issue.

It seems like this issue is actually unrelated to React Native core but related to Expo. Please open this issue against this other repository:

https://github.com/expo/expo/issues

I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
craco build doesn't return exit code (CRA5) 2 2021-12-22 2022-09-16
Should i be worried about "Unknown client wanted to connect"? 2 2021-01-11 2022-07-19
add integration tests for `ignite relayer` commands 0 2022-05-06 2022-07-19
http request benchmark, no difference between with or without cachalot 3 2022-02-15 2022-08-30
Scroll bar when using pageViewMode "Single", zoom: "page-fit" and showborders false 1 2022-02-14 2022-10-07
redundant taxonomy item in sidebar 1 2022-02-12 2022-07-25
Automatically resize logo for use in top menu 3 2022-02-13 2022-07-23
Option to make sidebar sticky in posts layout 2 2022-02-14 2022-09-11
Новое неизвестное поле от API 1 2021-08-30 2022-08-12
Production mode html cache bug 0 2022-09-24 2022-10-07
Strategy and Roadmap for Docs, Handbooks, Guides, etc. 23 2021-11-10 2021-12-26
Document in a runbook troubleshooting steps for OCS 0 2021-11-11 2021-12-26
Document how to add a trino database to superset 0 2021-11-11 2021-12-26
-DENABLE_MONGODB=TRUE is default? 3 2022-03-21 2022-09-05
Cannot delete comments 1 2022-02-14 2022-03-28
HTTPd:DisConnect: TID=12532 0 2021-05-28 2022-08-14
vim-plug failed install 2 2021-02-04 2022-09-29
[Site.webmanfiest] Consider maybe removing start_url? Or is it possible to have this set in the .config? 1 2022-01-07 2022-09-26
Support the presence of the extraPages field 7 2021-07-19 2022-09-18
Checks at the DataFrameSchema-level in case lambda return Series of Booleans or boolean with element_wise=True. 2 2022-03-16 2022-10-01
mode: Command failed with error: NameError: name 'media' is not defined. 2 2021-05-10 2022-04-15
Create a pdf with html styles (doubt) 2 2022-02-07 2022-09-27
Dashboard `Your storage` do not display anything 1 2022-01-31 2022-09-26
setValue at /data/default/-failed: DatabaseError: Permission denied 2 2018-12-22 2022-10-04
Bench quests should allow retagging as lounger 5 2022-06-27 2022-10-03
Document (& improve process for) transferring config across separate deployments 0 2021-11-08 2022-09-18
Darkness Eternal (1376090) 1 2022-08-27 2022-09-13
Preset help command says DM's are disabled when they aren't. 2 2021-06-16 2022-09-17
playlist format option/indicator 0 2022-03-22 2022-09-23
cmus can't load cue sheet while the audio file name contains non-english letters 1 2022-03-24 2022-09-23
Feature request: obs_info.f90 should use print_obs_seq_summary 1 2021-05-12 2022-10-06
Can't build after updating to RN 56 - Execution failed for task ':react-native-photo-view:verifyReleaseResources' 10 2018-07-23 2022-09-29
Steffen et al - Planetary boundaries: Guiding human development on a changing planet - Science (Feb 2015) + Update in 2020 1 2021-09-09 2022-09-28
Google account challenge authentication fails with 'Unable to log in: HTTP Error 400: Bad Request' 12 2020-01-27 2022-09-22
[Semantic API] Need an API to get the expected-type according to the context 1 2022-05-30 2022-09-21
Enhancements to handling of externally modified files 1 2022-01-15 2022-09-24
`return_assignment` can break functions that return by reference 0 2022-07-13 2022-10-04
QwikCity previous route's `onResolve` handler called with new route's endpoint data 0 2022-09-22 2022-09-22
[keycloak] External Database Password missing secret name 5 2022-03-15 2022-10-06
has `hooks.hookName.taps` been not recommanded? 3 2020-12-08 2022-09-23
testsuite fails when secureboot is on 3 2021-02-06 2022-09-25
Don't redirect spdlog to Python logging when using embedded Python 1 2022-02-09 2022-09-08
关于 http 接口 at 全体消息时 atme 参数的问题 1 2022-04-15 2022-09-28
Destination & identity service unable to reach k8s API due to static port 443 override 6 2022-05-31 2022-09-24
Add support for temporary AWS IAM credentials via AWS STS in SQS Eventsource 0 2022-04-26 2022-10-03
Cannot add a team as reviwer 6 2021-08-25 2022-09-22
Redis timeout was exceeded 19 2020-11-16 2022-10-02
Read-only Public role for anonymous users 4 2022-01-31 2022-07-13
[4.x] Require name argument 0 2020-11-17 2022-09-17
Stack Management Overview page 3 2021-11-02 2022-07-23