Just-Moh-it/Pckd

Issues installing dependencies

phoenpc opened this issue · 4 comments

Hey there, I've been having to reinstall Pckd (worked perfectly the first time) however I'm running into issues building dependencies and so on

Is anyone able to assist with this?

> pckd@1.0.0 init
> npm i -D nodemon concurrently && concurrently "npm run server-install" "npm run client-install"


added 132 packages, and audited 133 packages in 8s

18 packages are looking for funding
  run `npm fund` for details

5 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
[0] 
[0] > pckd@1.0.0 server-install
[0] > cd server && mv .env.example .env && npm install
[0] 
[1] 
[1] > pckd@1.0.0 client-install
[1] > cd client && mv .env.example .env && npm install
[1] 
[1] npm ERR! code ERESOLVE
[1] npm ERR! ERESOLVE could not resolve
[1] npm ERR! 
[1] npm ERR! While resolving: react-lottie@1.2.3
[1] npm ERR! Found: react@17.0.2
[1] npm ERR! node_modules/react
[1] npm ERR!   react@"^17.0.2" from the root project
[1] npm ERR!   peerOptional react@"^16.8.0 || ^17.0.0" from @apollo/client@3.5.9
[1] npm ERR!   node_modules/@apollo/client
[1] npm ERR!     @apollo/client@"^3.5.9" from the root project
[1] npm ERR!   17 more (@reduxjs/toolkit, @testing-library/react, ...)
[1] npm ERR! 
[1] npm ERR! Could not resolve dependency:
[1] npm ERR! peer react@"^0.14.7 || ^15.0.0 || ^16.0.0" from react-lottie@1.2.3
[1] npm ERR! node_modules/react-lottie
[1] npm ERR!   react-lottie@"^1.2.3" from the root project
[1] npm ERR! 
[1] npm ERR! Conflicting peer dependency: react@16.14.0
[1] npm ERR! node_modules/react
[1] npm ERR!   peer react@"^0.14.7 || ^15.0.0 || ^16.0.0" from react-lottie@1.2.3
[1] npm ERR!   node_modules/react-lottie
[1] npm ERR!     react-lottie@"^1.2.3" from the root project
[1] npm ERR! 
[1] npm ERR! Fix the upstream dependency conflict, or retry
[1] npm ERR! this command with --force, or --legacy-peer-deps
[1] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[1] npm ERR! 
[1] npm ERR! See /home/phoenpc/.npm/eresolve-report.txt for a full report.
[1] 
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR!     /home/phoenpc/.npm/_logs/2022-07-01T12_40_09_221Z-debug-0.log
[1] npm run client-install exited with code 1
[0] 
[0] added 202 packages, and audited 203 packages in 7s
[0] 
[0] 12 packages are looking for funding
[0]   run `npm fund` for details
[0] 
[0] 5 vulnerabilities (2 moderate, 3 high)
[0] 
[0] To address all issues, run:
[0]   npm audit fix
[0] 
[0] Run `npm audit` for details.
[0] npm run server-install exited with code 0

2022-07-01T12_40_09_221Z-debug-0.log

Hi, have you updated react? apparently lottie's lib reclaims version try to update react and reinstall dependencies you want, if you still have problems, post here!

They may have actually worked, ty!

(ran npm install react@latest react-dom@latest and npm update react@latest react-dom@latest)

Hey, I've recently updated the installation scripts to install all the missing dependencies. This should not be a problem now.