react-native-image-editor icon indicating copy to clipboard operation
react-native-image-editor copied to clipboard

install error usning npm@7

Open vemarav opened this issue 4 years ago • 4 comments
trafficstars

npm install @react-native-community/image-editor --save
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"17.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0" from @react-native-community/[email protected]
npm ERR! node_modules/@react-native-community/image-editor
npm ERR!   @react-native-community/image-editor@"*" 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 /Users/vemarav/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/vemarav/.npm/_logs/2021-08-04T05_02_55_224Z-debug.log

vemarav avatar Aug 04 '21 05:08 vemarav

trying to install truffle on vscode and it says npm is the problenm of not be able to install cod used npm intsall truffle -g

davesope avatar Sep 07 '21 11:09 davesope

same issue

viacovne avatar Oct 06 '21 15:10 viacovne

It seems the issue you are facing is specific to npm@7+'s requirement to provide the correct version of peer dependencies when installing the packages. Have you tried running npm install --legacy-peer-deps The --legacy-per-deps flag was introduced in npm@7+ as a way to install without peer dependencies check anyway. This is how it used to be from npm v4-v6.

shettychirag7 avatar Mar 10 '22 03:03 shettychirag7

Same issue... installing works with --legacy-peer-deps and/or --force but fixing audits via npm won't work then:

npm ERR! Cannot read properties of null (reading 'children')

Last log of npm audit fix refers to this library:

414 verbose unfinished npm timer idealTree:node_modules/@react-native-community/image-editor 1647349766947

Anyone still maintaining this or is it EOL and ppl should migrate to other library? Since the PR with a fix is already opened since 7 month without any discussion it seems to be EOL?

mppperez avatar Mar 15 '22 13:03 mppperez

same issue Cannot read properties of null (reading 'children')

wadekar9 avatar Mar 15 '23 11:03 wadekar9

fix: https://github.com/callstack/react-native-image-editor/pull/125 also will be release soon

retyui avatar Nov 06 '23 09:11 retyui