ashutosh1919 / masterPortfolio

🔥 The Complete Customizable Software Developer Portfolio Template which lets you showcase your work and provides each and every detail about you as Software Developer.
https://ashutoshhathidara.com
MIT License
3.54k stars 1.43k forks source link

Cannot run locally #347

Closed Gokul-Raja84 closed 5 months ago

Gokul-Raja84 commented 7 months ago

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.

Gokul-Raja84 commented 7 months ago

'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: apollo-boost@0.4.9 Found: graphql@16.8.1 node_modules/graphql graphql@"^16.8.1" from the root project peer graphql@"^14.0.0 || ^15.0.0 || ^16.0.0" from @apollo/client@3.8.10 node_modules/@apollo/client @apollo/client@"latest" from @apollo/react-hooks@4.0.0 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/core@3.2.0 node_modules/@graphql-typed-document-node/core @graphql-typed-document-node/core@"^3.1.1" from @apollo/client@3.8.10 node_modules/@apollo/client @apollo/client@"latest" from @apollo/react-hooks@4.0.0 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 graphql-tag@2.12.6 node_modules/graphql-tag graphql-tag@"^2.12.6" from @apollo/client@3.8.10 node_modules/@apollo/client @apollo/client@"latest" from @apollo/react-hooks@4.0.0 node_modules/@apollo/react-hooks @apollo/react-hooks@"^4.0.0" from the root project graphql-tag@"^2.4.2" from apollo-boost@0.4.9 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 apollo-boost@0.4.9 node_modules/apollo-boost apollo-boost@"^0.4.9" from the root project

Conflicting peer dependency: graphql@15.8.0 node_modules/graphql peer graphql@"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from apollo-boost@0.4.9 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.

abdulhananasif commented 5 months ago

worked for with node v12