0

PS D:\Repos\BANANAFILE> npm install @tensorflow/tfjs-react-native

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@"^16.14.0" from the root project

npm ERR! peer react@"^16.12.0" from @tensorflow/[email protected]

npm ERR! node_modules/@tensorflow/tfjs-react-native

npm ERR! @tensorflow/tfjs-react-native@"*" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer react@"17.0.2" from [email protected]

npm ERR! node_modules/react-native

npm ERR! react-native@"0.68.2" from the root project

npm ERR! peer react-native@">= 0.58.0" from @tensorflow/[email protected]

npm ERR! node_modules/@tensorflow/tfjs-react-native

npm ERR! @tensorflow/tfjs-react-native@"*" from the root project

npm ERR! 1 more (@react-native-async-storage/async-storage)

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\user\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\user\AppData\Local\npm-cache_logs\2022-05-22T03_25_52_871Z-debug-0.log

1 Answer 1

4

as per your log the versions are mismatching, try to install with --legacy-peer-deps

npm install @tensorflow/tfjs-react-native --legacy-peer-deps
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.