Skip to content

Installing react-native-opencv3 on latest react-native #48

@brcra0019

Description

@brcra0019

Hi There,
In attempt to install react-native-opencv3 on react-native@0.67.2, I got the following error attached below.

As I don't know which react-native@ libraries are important to opencv3 plugin, I didn't want skip dependencies, running the command

npm install --save --legacy--peer-deps react-native-opencv3

Thus, is there an easy way to map such dependencies and fix them, in order to install react-native-opencv3 module properly?

i.e. using standard command line npm install --save react-native-opencv3

Error message is below

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: biometricmax@0.0.1
npm ERR! Found: react-native@0.67.2
npm ERR! node_modules/react-native
npm ERR! react-native@"0.67.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"0.59.5" from react-native-opencv3@1.0.8
npm ERR! node_modules/react-native-opencv3
npm ERR! react-native-opencv3@"*" 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/iuri/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/iuri/.npm/_logs/2022-02-05T19_15_55_499Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions