0wczar / airframe-react

Free Open Source High Quality Dashboard based on Bootstrap 4 & React 16: http://dashboards.webkom.co/react/airframe
https://airframe-react-lime.vercel.app
MIT License
3.93k stars 714 forks source link

npm install failing - ESLint dependency #57

Closed s3to87 closed 2 years ago

s3to87 commented 2 years ago

When trying to run npm install with a fresh cloned repo, i receive the following. Does someone have an idea how I can solve this? Many thanks in advance!

`npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: airframe-dashboard@0.1.0 npm ERR! Found: eslint@6.8.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"^6.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer eslint@"^4.19.1 || ^5.3.0" from eslint-config-airbnb@17.1.1 npm ERR! node_modules/eslint-config-airbnb npm ERR! dev eslint-config-airbnb@"^17.1.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...\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...\AppData\Local\npm-cache_logs\2022-01-11T23_55_44_907Z-debug-0.log`

furryboffin commented 2 years ago

try to replace the version number of eslint in package.json with "*". Then run npm install again.

s3to87 commented 2 years ago

Thank you, this solved the issue.