Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can you upgrade your project for latest node version #9

Open
fahadmhd opened this issue Dec 29, 2022 · 1 comment
Open

can you upgrade your project for latest node version #9

fahadmhd opened this issue Dec 29, 2022 · 1 comment

Comments

@fahadmhd
Copy link

I have been using your project since many months, but now I have upgraded my project wrt to latest node v18.12.1
When i install i.e., npm i @innotrade/enapso-graphdb-admin --save
It gives me following error :
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/graphql
npm ERR! peer graphql@"^14.0.0 || ^15.0.0" from @apollo/[email protected]
npm ERR! node_modules/@apollo/client
npm ERR! @apollo/client@"latest" from @apollo/[email protected]
npm ERR! node_modules/@apollo/react-hooks
npm ERR! @apollo/react-hooks@"^4.0.0" from the root project
npm ERR! 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" from @graphql-typed-document-node/[email protected]
npm ERR! node_modules/@graphql-typed-document-node/core
npm ERR! @graphql-typed-document-node/core@"^3.0.0" from @apollo/[email protected]
npm ERR! node_modules/@apollo/client
npm ERR! @apollo/client@"latest" from @apollo/[email protected]
npm ERR! node_modules/@apollo/react-hooks
npm ERR! @apollo/react-hooks@"^4.0.0" from the root project
npm ERR! 11 more (apollo-cache, apollo-cache-inmemory, apollo-client, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^14.1.1" from [email protected]
npm ERR! node_modules/ra-data-graphql
npm ERR! ra-data-graphql@"^3.11.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/graphql
npm ERR! peer graphql@"^14.1.1" from [email protected]
npm ERR! node_modules/ra-data-graphql
npm ERR! ra-data-graphql@"^3.11.4" 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!
npm ERR! For a full report see:
npm ERR! C:\Users\fahad\AppData\Local\npm-cache_logs\2022-12-29T16_44_32_037Z-eresolve-report.txt

From this line of error "npm ERR! Fix the upstream dependency conflict, or retry" it seems your project only works with previous versions of node. Is it possible you to upgrade it ? OR suggest how to fix
thanks alot

@asheshgoplani
Copy link
Collaborator

Hello!

I would like to confirm that the package should work with the latest version of Node.js.

It is possible that there may be other issues or conflicts in your project that are causing the installation to fail. Here are a few suggestions for things you can try to resolve the issue:

  • Update the npm version: Sometimes updating to the latest version of npm can resolve dependency conflicts. You can update npm by running npm install -g npm.

  • Try installing the package with the --legacy-peer-deps flag: As the error message suggests, you can try installing the package with the --legacy-peer-deps flag, like this: npm i --legacy-peer-deps --save @innotrade/enapso-graphdb-admin. This flag allows npm to install packages with conflicting peer dependencies.

  • Check for any other issues or conflicts in your project: There may be other issues or conflicts in your project that are causing the installation to fail. You can try running npm install --force without any specific package to see if there are any other issues that need to be resolved.

I hope these suggestions are helpful. If you continue to have issues, please don't hesitate to ask for further assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants