graphql-subscriptions icon indicating copy to clipboard operation
graphql-subscriptions copied to clipboard

Cannot Install on Node 16 NPM 8

Open ais-one opened this issue 3 years ago • 1 comments

  • [X] has-reproduction
  • [ ] feature
  • [ ] blocking
  • [ ] good first issue

Reproduce using these commands

npm ini -y
npm install graphql
npm install graphql-ws
npm install graphql-subscriptions

The last command has these errors

PS C:\Users\aaron\test\xxx> npm i graphql-subscriptions
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from [email protected]
npm ERR! node_modules/graphql-subscriptions
npm ERR!   graphql-subscriptions@"*" 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.

ais-one avatar Oct 29 '21 10:10 ais-one

suggestion: change title to "Need to upgrade peerDependency of graphql to include 16"

bneigher avatar May 09 '22 17:05 bneigher