apollographql / apollographql/graphql-subscriptions

Cannot Install on Node 16 NPM 8

Open
#246 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
129
PR merge metrics
No merged PRs in 30d

Description

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

Reproduce using these commands

```bash
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: xxx@1.0.0
npm ERR! Found: graphql@16.0.0
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 graphql-subscriptions@1.2.1
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.
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported install sequence with Node 16 and npm 8, then inspect the dependency metadata for graphql-subscriptions@1.2.1 and its GraphQL peer range. Done means the package installs successfully with GraphQL 16 without requiring --force or --legacy-peer-deps, with the compatibility behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, node.js, typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.