Get it working first and then look lnto the vulnerabilities. So start over and ignore it when it says it found them
Nov 8, 2022
4
Level 63
Ionic / React : impossible to run npm install / dependencies problem
Hello,
I'm trying to use Ionic with React, so I went to Ionic website to generate a new app.
I have followed the documentation on the Ionic website.
npm install -g @ionic/cli cordova-res
git clone https://gitlab.com/vincent15000/shoppingmiam.git shoppingmiam
cd shoppingmiam && npm install && ionic serve
When I ran npm install, I got 72 vulnerabilities.
I have searched on the web and I have found the npm-check-updates package, so I ran ncu -u to update all packages in the JSON file.
Now when I run npm install, I get this error message.
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-router
npm ERR! react-router@"^6.4.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-router@"^5.0.1" from @ionic/[email protected]
npm ERR! node_modules/@ionic/react-router
npm ERR! @ionic/react-router@"^6.3.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 /home/vincent/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vincent/.npm/_logs/2022-11-08T19_44_59_093Z-debug-0.log
I get exactly the same problem if I install ionic in command line.
How can I solve this problem ?
Thanks for your help.
Vincent
Level 102
@vincent15000 if npm audit fix cannot fix it, you need to go over them one by one and research how to fix that specific vuln
1 like
Please or to participate in this conversation.