In my react native project, I want to install React Native Firebase Auth but I got error after running this command:
npm i #react-native-firebase/auth
The error :
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: KengTung#0.0.1
npm ERR! Found: #react-native-firebase/app#16.5.1
npm ERR! node_modules/#react-native-firebase/app
npm ERR! peer #react-native-firebase/app#"16.5.1" from #react-native-firebase/database#16.5.1
npm ERR! node_modules/#react-native-firebase/database
npm ERR! #react-native-firebase/database#"^16.5.1" from the root project
npm ERR! peer #react-native-firebase/app#"16.5.1" from #react-native-firebase/storage#16.5.1
npm ERR! node_modules/#react-native-firebase/storage
npm ERR! #react-native-firebase/storage#"^16.5.1" from the root project
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! #react-native-firebase/auth#"*" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: #react-native-firebase/app#16.7.0
npm ERR! node_modules/#react-native-firebase/app
npm ERR! peer #react-native-firebase/app#"16.7.0" from #react-native-firebase/auth#16.7.0
npm ERR! node_modules/#react-native-firebase/auth
npm ERR! #react-native-firebase/auth#"*" from the root project
npm ERR!
Try this :
npm config set legacy-peer-deps true
npm i
Related
I use Node.js v18.9.1 and React Native Expo 6.0.8. When I download Native Base I get system error:
D:\Ui-Project\UI-Project>npm install native-base
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ui-project#1.0.0
npm ERR! Found: react#18.1.0
npm ERR! node_modules/react
npm ERR! react#"18.1.0" from the root project
npm ERR! peer react#"*" from native-base#3.4.21
npm ERR! node_modules/native-base
npm ERR! native-base#"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^18.2.0" from react-dom#18.2.0
npm ERR! node_modules/react-dom
npm ERR! peer react-dom#"*" from native-base#3.4.21
npm ERR! node_modules/native-base
npm ERR! native-base#"*" 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\PC\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\PC\AppData\Local\npm-cache\_logs\2022-11-15T14_51_31_860Z-debug-0.log
Try this:
npm install native-base --legacy-peer-deps
npm install not working I am facing this error logs
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving:xxx#0.0.1
npm ERR! Found: react#17.0.2
npm ERR! node_modules/react
npm ERR! react#"17.0.2" from the root project
npm ERR! peer react#"*" from react-native-country-picker-modal#2.0.0
npm ERR! node_modules/react-native-country-picker-modal
npm ERR! react-native-country-picker-modal#"^2.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^18.2.0" from react-dom#18.2.0
npm ERR! node_modules/react-dom
npm ERR! peer react-dom#"*" from react-native-country-picker-modal#2.0.0
Resolved this error by using
npm install --force
npm install --legacy-peer-deps
or
we can use yarn install in some cases yarn works
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined#undefined
npm ERR! Found: vue#2.6.14
npm ERR! node_modules/vue
npm ERR! dev vue#"^2.6.12" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue#"^3.0.2" from vuex#4.0.2
npm ERR! node_modules/vuex
npm ERR! vuex#"*" 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!
Right now my current project is using an old version of webpack (3.5.1) and I need to update it to a version that can understand object spread because an npm module would not compile because of older webpack version.
If I run npm update webpack I get the following error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: css-loader#1.0.1
npm ERR! Found: webpack#3.5.1
npm ERR! node_modules/webpack
npm ERR! webpack#"3.5.1" from the root project
npm ERR! peer webpack#"2 || 3" from babel-loader#7.1.1
npm ERR! node_modules/babel-loader
npm ERR! babel-loader#"7.1.1" from the root project
npm ERR! 10 more (extract-text-webpack-plugin, file-loader, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack#"^4.0.0" from css-loader#1.0.1
npm ERR! node_modules/css-loader
npm ERR! dev css-loader#"1.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: webpack#4.46.0
npm ERR! node_modules/webpack
npm ERR! peer webpack#"^4.0.0" from css-loader#1.0.1
npm ERR! node_modules/css-loader
npm ERR! dev css-loader#"1.0.1" from the root project
I tried to force update but it didn't work either.
I have installed sveltekit and deployed the sveltekit template to netify.
I want to link it to netify-cms and then do some actually website building but it caused this error when trying to download the npm package.
C:\Users\pjsup\code\ponders-showcase>npm i netlify-cms-app
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react#17.0.2
npm ERR! node_modules/react
npm ERR! peer react#"^16.8.4 || ^17.0.0" from netlify-cms-app#2.15.40
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app#"*" from the root project
npm ERR! peer react#"17.0.2" from react-dom#17.0.2
npm ERR! node_modules/react-dom
npm ERR! peer react-dom#"^16.8.4 || ^17.0.0" from netlify-cms-app#2.15.40
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app#"*" from the root project
npm ERR! peer react-dom#"^16.8.4 || ^17.0.0" from netlify-cms-core#2.48.0
npm ERR! node_modules/netlify-cms-core
npm ERR! netlify-cms-core#"^2.48.0" from netlify-cms-app#2.15.40
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app#"*" from the root project
npm ERR! 7 more (netlify-cms-widget-date, ...)
npm ERR! 39 more (#emotion/core, #emotion/styled, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.0.0-0" from react-split-pane#0.1.92
npm ERR! node_modules/netlify-cms-core/node_modules/react-split-pane
npm ERR! react-split-pane#"^0.1.85" from netlify-cms-core#2.48.0
npm ERR! node_modules/netlify-cms-core
npm ERR! netlify-cms-core#"^2.48.0" from netlify-cms-app#2.15.40
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app#"*" 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\pjsup\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\pjsup\AppData\Local\npm-cache\_logs\2021-09-06T12_26_54_989Z-debug.log
Is this because the netify-cms cannot work with sveltekit yet? It claims to work with Sapper its predecessor.
https://www.netlifycms.org/docs/add-to-your-site/