Rinakat225 / Todo-list

0 stars 0 forks source link

Few errors when installing node dependencies #14

Closed kresimir-coko closed 2 months ago

kresimir-coko commented 2 months ago

After cloning the repo and running npm i in the root folder, I get the following error:

npm i (or npm install) is the command to install all dependencies and its the most important command in a node/javascript project, it needs to complete successfully for any given project to work.

kresimircoko@Kresimirs-MacBook-Pro Todo-list % npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: eslint-plugin-react@7.34.1
npm ERR! Found: eslint@9.3.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^9.3.0" from the root project
npm ERR!   peer eslint@"^7.5.0 || ^8.0.0 || ^9.0.0" from @babel/eslint-parser@7.24.5
npm ERR!   node_modules/@babel/eslint-parser
npm ERR!     @babel/eslint-parser@"^7.16.3" from eslint-config-react-app@7.0.1
npm ERR!     node_modules/react-scripts/node_modules/eslint-config-react-app
npm ERR!       eslint-config-react-app@"^7.0.1" from react-scripts@5.0.1
npm ERR!       node_modules/react-scripts
npm ERR!         react-scripts@"5.0.1" from the root project
npm ERR!   3 more (@eslint-community/eslint-utils, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8" from eslint-plugin-react@7.34.1
npm ERR! node_modules/eslint-plugin-react
npm ERR!   dev eslint-plugin-react@"^7.34.1" from the root project
npm ERR!   eslint-plugin-react@"^7.27.1" from eslint-config-react-app@7.0.1
npm ERR!   node_modules/react-scripts/node_modules/eslint-config-react-app
npm ERR!     eslint-config-react-app@"^7.0.1" from react-scripts@5.0.1
npm ERR!     node_modules/react-scripts
npm ERR!       react-scripts@"5.0.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: eslint@8.57.0
npm ERR! node_modules/eslint
npm ERR!   peer eslint@"^3 || ^4 || ^5 || ^6 || ^7 || ^8" from eslint-plugin-react@7.34.1
npm ERR!   node_modules/eslint-plugin-react
npm ERR!     dev eslint-plugin-react@"^7.34.1" from the root project
npm ERR!     eslint-plugin-react@"^7.27.1" from eslint-config-react-app@7.0.1
npm ERR!     node_modules/react-scripts/node_modules/eslint-config-react-app
npm ERR!       eslint-config-react-app@"^7.0.1" from react-scripts@5.0.1
npm ERR!       node_modules/react-scripts
npm ERR!         react-scripts@"5.0.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.