question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest express-graphql is not working with the latest graphql

See original GitHub issue

Latest express-graphql isnot working with the latest graphql:

npm install express-graphql@latest --save
npm WARN express-graphql@0.6.12 requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.

package.json:

  "dependencies": {
    "express-graphql": "^0.6.12",
    "graphql": "^14.0.2",
  }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:25 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
michael-gates-techngscommented, Jun 16, 2022

Still getting this issue

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @upgrade/api-server@0.0.1
npm ERR! Found: graphql@16.5.0
npm ERR! node_modules/graphql
npm ERR!   graphql@"^16.5.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer graphql@"^14.7.0 || ^15.3.0" from express-graphql@0.12.0
npm ERR! node_modules/express-graphql
npm ERR!   express-graphql@"^0.12.0" 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.
7reactions
queendeveloperscommented, Apr 13, 2020

Guys. What I have done is gone through each warning and tried to install them. npm WARN graphql-express@2.0.1 requires a peer of rxjs@^6.5.0 so I did sudo npm install rxjs then I again got warning with ..requires a peer of graphql@^14.4.1 so I guess the graphql is not installed in my system so I did sudo npm install graphql which respond npm WARN y@1.0.0 No repository field. then again sudo npm install rxjs which output npm WARN y@1.0.0 No repository field. then finally I ran ‘sudo npm install graphql-express’ npm WARN y@1.0.0 No repository field.

That’s it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to install express-graphql - node.js - Stack Overflow
Now, First download express-graphql from npm ( Download before any other npm package in app ). These steps solve my problem.
Read more >
express-graphql
Constructs an Express application based on a GraphQL schema. See the express-graphql tutorial for sample usage. See the GitHub README for more extensive ......
Read more >
express-graphql - npm
Latest version: 0.12.0, last published: 2 years ago. Start using express-graphql in your project by running `npm i express-graphql`.
Read more >
Using Node.js Express to Quickly Build a GraphQL Server
It has been created to solve some structural problems developers ... The latest step to get a basic GraphQL API working is creating...
Read more >
Get started with Apollo Server - Apollo GraphQL Docs
This tutorial assumes that you are familiar with the command line and JavaScript and have installed a recent Node.js (v14.16.0+) version.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found