callstack/react-native-image-editor

install error usning npm@7

vemarav opened this issue · 6 comments

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: ma@0.0.1
npm ERR! Found: react@17.0.1
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/image-editor@2.3.0
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

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

same issue

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.

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?

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