masterPortfolio
masterPortfolio copied to clipboard
Cannot run locally
I am encountering a dependency resolution issue while trying to install the project dependencies. The error message indicates a conflict between the versions of the graphql package required by different dependencies.
Error Message:
plaintext Copy code npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve ... Details:
Packages Involved:
@apollo/client (version 3.8.10) apollo-boost (version 0.4.9) Conflicting Dependency:
graphql (version 15.8.0) Steps to Reproduce:
Clone the project from GitHub. Run npm install to install dependencies. Expected Behavior: I expect the dependencies to be installed without encountering dependency resolution conflicts.
Additional Information:
Node.js version: [Your Node.js version] npm version: [Your npm version] Operating System: [Your operating system] Steps Taken to Resolve: I have tried the following steps to resolve the issue, but the problem persists:
Updated npm to the latest version. Cleared node_modules and the npm cache. Attempted a force install using npm install --force. Tried installing with the --legacy-peer-deps flag. Checked for updates with npm update. Possible Solutions: I am seeking guidance on how to resolve this dependency conflict or if there are specific version requirements for the mentioned packages.
'Log files: C:\Users\GOKUL RAJA\AppData\Local\npm-cache_logs\2024-01-25T07_34_48_909Z-debug-0.log
npm resolution error report
While resolving: [email protected] Found: [email protected] node_modules/graphql graphql@"^16.8.1" from the root project peer graphql@"^14.0.0 || ^15.0.0 || ^16.0.0" from @apollo/[email protected] node_modules/@apollo/client @apollo/client@"latest" from @apollo/[email protected] node_modules/@apollo/react-hooks @apollo/react-hooks@"^4.0.0" from the root project peer graphql@"^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" from @graphql-typed-document-node/[email protected] node_modules/@graphql-typed-document-node/core @graphql-typed-document-node/core@"^3.1.1" from @apollo/[email protected] node_modules/@apollo/client @apollo/client@"latest" from @apollo/[email protected] node_modules/@apollo/react-hooks @apollo/react-hooks@"^4.0.0" from the root project peer graphql@"^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" from [email protected] node_modules/graphql-tag graphql-tag@"^2.12.6" from @apollo/[email protected] node_modules/@apollo/client @apollo/client@"latest" from @apollo/[email protected] node_modules/@apollo/react-hooks @apollo/react-hooks@"^4.0.0" from the root project graphql-tag@"^2.4.2" from [email protected] node_modules/apollo-boost apollo-boost@"^0.4.9" from the root project
Could not resolve dependency: peer graphql@"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from [email protected] node_modules/apollo-boost apollo-boost@"^0.4.9" from the root project
Conflicting peer dependency: [email protected] node_modules/graphql peer graphql@"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from [email protected] node_modules/apollo-boost apollo-boost@"^0.4.9" from the root project
Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
worked for with node v12