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!
Related
React App is giving this error whenever i try to install any dependency and also tried
uninstall and reinstall NodeJs but its not working. Its very difficult to distinguish error whats happening.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-dfb#1.0.4
npm ERR! Found: react#17.0.2
npm ERR! node_modules/react
npm ERR! peer react#"*" from #testing-library/react#11.2.7
npm ERR! node_modules/#testing-library/react
npm ERR! #testing-library/react#"^11.2.7" from the root project
npm ERR! peer react#"^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" from mini-create-react-context#0.4.1
npm ERR! node_modules/mini-create-react-context
npm ERR! mini-create-react-context#"^0.4.0" from react-router#5.2.0
npm ERR! node_modules/react-router
npm ERR! react-router#"5.2.0" from react-router-dom#5.2.0
npm ERR! node_modules/react-router-dom
npm ERR! react-router-dom#"^5.2.0" from the root project
npm ERR! 10 more (react-device-detect, react-dom, react-h5-audio-player, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"~16.0.0" from react-dfb#1.0.4
npm ERR! node_modules/react-dfb
npm ERR! react-dfb#"^1.0.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react#16.0.0
npm ERR! node_modules/react
npm ERR! peer react#"~16.0.0" from react-dfb#1.0.4
npm ERR! node_modules/react-dfb
npm ERR! react-dfb#"^1.0.4" 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\Md Yasin Ansari\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\Md Yasin Ansari\AppData\Local\npm-cache\_logs\2022-11-13T12_55_52_296Z-debug-0.log
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: my-app#0.0.0
npm ERR! Found: #angular/common#14.2.0
npm ERR! node_modules/#angular/common
npm ERR! #angular/common#"^14.2.3" from the root project
npm ERR! peer #angular/common#"14.2.0" from #angular/forms#14.2.0
npm ERR! node_modules/#angular/forms
npm ERR! #angular/forms#"^14.2.3" from the root project
npm ERR! 4 more (#angular/platform-browser, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! #angular/common#"^14.2.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: #angular/core#14.2.3
npm ERR! node_modules/#angular/core
npm ERR! peer #angular/core#"14.2.3" from #angular/common#14.2.3
npm ERR! node_modules/#angular/common
npm ERR! #angular/common#"^14.2.3" 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.
Ok I found the answer through angular communities, you just need to run this command on the terminal
ng update #angular/cli #angular/core
My project uses Chakra-UI and React. When trying to run npm install, I got this npm error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: #choc-ui/chakra-autocomplete#5.1.2
npm ERR! Found: #chakra-ui/react#1.8.8
npm ERR! node_modules/#chakra-ui/react
npm ERR! #chakra-ui/react#"latest" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #chakra-ui/react#"^2.2.8" from #choc-ui/chakra-autocomplete#5.1.2
npm ERR! node_modules/#choc-ui/chakra-autocomplete
npm ERR! #choc-ui/chakra-autocomplete#"^5.1.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react#18.2.0
npm ERR! node_modules/react
npm ERR! peer react#">=18" from #chakra-ui/react#2.3.5
npm ERR! node_modules/#chakra-ui/react
npm ERR! peer #chakra-ui/react#"^2.2.8" from #choc-ui/chakra-autocomplete#5.1.2
npm ERR! node_modules/#choc-ui/chakra-autocomplete
npm ERR! #choc-ui/chakra-autocomplete#"^5.1.2" 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.
I don't understand this error, I tried deleting node_modules and package-lock.json, ran npm install again, but same error. Any ideas?
run again npm install --legacy-peer-deps that will solve your issue
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
Whenever I try to install nest/terminus
npm i #nestjs/terminus
I get the following error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: typeorm#0.3.7
npm ERR! Found: ioredis#4.28.5
npm ERR! node_modules/ioredis
npm ERR! peer ioredis#"^4.0.0" from #nestjs-modules/ioredis#1.0.1
npm ERR! node_modules/#nestjs-modules/ioredis
npm ERR! #nestjs-modules/ioredis#"^1.0.1" from the root project
npm ERR! ioredis#"^4.28.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional ioredis#"^5.0.4" from typeorm#0.3.7
npm ERR! node_modules/typeorm
npm ERR! peertypeorm#"^0.3.0" from #nestjs/typeorm#8.1.4
npm ERR! node_modules/#nestjs/typeorm
npm ERR! #nestjs/typeorm#"^8.1.4" from the root project
npm ERR! typeorm#"^0.3.7" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: ioredis#5.2.1
npm ERR! node_modules/ioredis
npm ERR! peerOptional ioredis#"^5.0.4" from typeorm#0.3.7
npm ERR! node_modules/typeorm
npm ERR! peer typeorm#"^0.3.0" from #nestjs/typeorm#8.1.4
npm ERR! node_modules/#nestjs/typeorm
npm ERR! #nestjs/typeorm#"^8.1.4" from the root project
npm ERR! typeorm#"^0.3.7" 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.
I tried running the following command
npm install --save --legacy-peer-deps
it ran okay, but on repeating the terminus installation I got the same error. Any idea what I might be doing wrong?