I get this error when I try to install these dependencies:
#material-ui/core
#material-ui/icons
#material-ui/lab
#react-google-maps/api
axios
google-map-react
There is the output:
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: travel_advisor#0.1.0
npm ERR! Found: react#18.2.0
npm ERR! node_modules/react
npm ERR! react#"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.8.0 || ^17.0.0" from #material-ui/core#4.12.4
npm ERR! node_modules/#material-ui/core
npm ERR! #material-ui/core#"*" 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\Admin\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\Admin\AppData\Local\npm-cache\_logs\2022-07-17T07_18_22_154Z-debug-0.log
Related
Failed to fetch plugin https://github.com/katzer/cordova-plugin-background-mode.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: Error: npm: Command failed with exit code 1 Error output:
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: #awesome-cordova-plugins/in-app-purchase-2#5.37.1
npm ERR! Found: rxjs#6.6.7
npm ERR! node_modules/rxjs
npm ERR! rxjs#"6.6.7" from #angular-devkit/architect#0.1201.4
npm ERR! node_modules/#angular-devkit/architect
npm ERR! #angular-devkit/architect#"0.1201.4" from #angular-devkit/build-angular#12.1.4
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~12.1.1" from the root project
npm ERR! #angular-devkit/architect#"0.1201.4" from #angular-devkit/build-webpack#0.1201.4
npm ERR! node_modules/#angular-devkit/build-webpack
npm ERR! #angular-devkit/build-webpack#"0.1201.4" from #angular-devkit/build-angular#12.1.4
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~12.1.1" from the root project
npm ERR! 1 more (#angular/cli)
npm ERR! rxjs#"6.6.7" from #angular-devkit/build-angular#12.1.4
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~12.1.1" from the root project
npm ERR! 21 more (#angular-devkit/build-webpack, #angular-devkit/core, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs#"^5.5.0 || ^7.3.0" from #awesome-cordova-plugins/in-app-purchase-2#5.37.1
npm ERR! node_modules/#awesome-cordova-plugins/in-app-purchase-2
npm ERR! #awesome-cordova-plugins/in-app-purchase-2#"^5.37.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: rxjs#7.5.6
npm ERR! node_modules/rxjs
npm ERR! peer rxjs#"^5.5.0 || ^7.3.0" from #awesome-cordova-plugins/in-app-purchase-2#5.37.1
npm ERR! node_modules/#awesome-cordova-plugins/in-app-purchase-2
npm ERR! #awesome-cordova-plugins/in-app-purchase-2#"^5.37.1" 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\orgne\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\orgne\AppData\Local\npm-cache\_logs\2022-08-15T14_50_01_258Z-debug-0.log
Try the following:
cordova plugin add https://github.com/yourplugin --nofetch
You can check more info in this old answer from here
Ive been trying to install react-awesome-query-builder in my Vdom-Oracle JET project, but I'm getting following error. Could you please help me to solve this issue?
npm i react-awesome-query-builder --save
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vdom-chart-sample#1.0.0
npm ERR! Found: react#18.2.0
npm ERR! node_modules/react
npm ERR! peer react#"^16.8.4 || ^17.0.1 || ^18.0.0" from react-awesome-query-builder#5.3.1
npm ERR! node_modules/react-awesome-query-builder
npm ERR! react-awesome-query-builder#"^5.3.1" from the root project
npm ERR! peer react#">=16.0.0" from #ant-design/icons#4.7.0
npm ERR! node_modules/#ant-design/icons
npm ERR! #ant-design/icons#"^4.7.0" from the root project
npm ERR! peer #ant-design/icons#"^4.0.0" from react-awesome-query-builder#5.3.1
npm ERR! node_modules/react-awesome-query-builder
npm ERR! react-awesome-query-builder#"^5.3.1" from the root project
npm ERR! 4 more (react-dom, #emotion/react, #emotion/styled, #fortawesome/react-fontawesome)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.8.0 || ^17.0.0" from #material-ui/core#4.12.4
npm ERR! node_modules/#material-ui/core
npm ERR! peer #material-ui/core#"^4.12.3" from react-awesome-query-builder#5.3.1
npm ERR! node_modules/react-awesome-query-builder
npm ERR! react-awesome-query-builder#"^5.3.1" 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\Rence Abishek\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\Rence Abishek\AppData\Local\npm-cache\_logs\2022-09-07T12_45_29_407Z-debug-0.log
Note: If I try using --force, its working fine, But I'm not sure if it will become problem in future!
After updating the node to the latest 16.15.1
And tried npm install or npm ci getting the below error.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: #vue/cli-plugin-eslint#4.5.13
npm ERR! Found: eslint#6.8.0
npm ERR! node_modules/#vue/cli-plugin-eslint/node_modules/eslint
npm ERR! peer eslint#">=1.6.0 <7.0.0" from eslint-loader#2.2.1
npm ERR! node_modules/#vue/cli-plugin-eslint/node_modules/eslint-loader
npm ERR! eslint-loader#"^2.2.1" from #vue/cli-plugin-eslint#4.5.13
npm ERR! node_modules/#vue/cli-plugin-eslint
npm ERR! dev #vue/cli-plugin-eslint#"^4.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint#">= 1.6.0 < 7.0.0" from #vue/cli-plugin-eslint#4.5.13
npm ERR! node_modules/#vue/cli-plugin-eslint
npm ERR! dev #vue/cli-plugin-eslint#"^4.5.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint#6.8.0
npm ERR! node_modules/eslint
npm ERR! peer eslint#">= 1.6.0 < 7.0.0" from #vue/cli-plugin-eslint#4.5.13
npm ERR! node_modules/#vue/cli-plugin-eslint
npm ERR! dev #vue/cli-plugin-eslint#"^4.5.0" 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.
The workaround is to use --legacy-peer-deps with npm
Or do we have any better solution instead of accepting an incorrect (and potentially broken) dependency resolution.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: chat_application#0.1.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!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.8.0 || ^17.0.1" from react-chat-engine#1.11.22
npm ERR! node_modules/react-chat-engine
npm ERR! react-chat-engine#"*" from the root project
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\Swapnil\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\Swapnil\AppData\Local\npm-cache\_logs\2022-04-28T04_06_41_338Z-debug-0.log
Try using - npm install --save modulename --legacy-peer-deps
I'm developing a react native application. Throughout the project I have used Node package manager to install the packages. But I ran into this dependency problem first time when I try to install react-native-styled-components with npm, so I installed it with yarn.
Now I can't install any package with node package manager, I run into this unable to resolve dependency tree error.
PS C:\Users\94774\OneDrive\React Projects\Native Projects\Android\socialmediaapp> npm install react#latest react-native#latest
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: socialmediaapp#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!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"17.0.1" from react-native#0.64.1
npm ERR! node_modules/react-native
npm ERR! react-native#"0.64.1" 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\94774\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\94774\AppData\Local\npm-cache\_logs\2021-05-06T12_12_44_173Z-debug.log
PS C:\Users\94774\OneDrive\React Projects\Native Projects\Android\socialmediaapp> npm install --save #react-native-firebase/app
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: socialmediaapp#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! peer react#">= 16.8.0" from styled-components#5.3.0
npm ERR! node_modules/styled-components
npm ERR! styled-components#"^5.3.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
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.0" from styled-components#5.3.0
npm ERR! node_modules/styled-components
npm ERR! styled-components#"^5.3.0" 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\94774\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\94774\AppData\Local\npm-cache\_logs\2021-05-06T12_41_01_675Z-debug.log
npm install react-native-styled-components --legacy-peer-deps