graphql-cli / graphql-cli-gramps

Link library to add gramps-cli to graphql-cli
MIT License
1 stars 0 forks source link

Missing peer dependencies #9

Open jlengstorf opened 6 years ago

jlengstorf commented 6 years ago

This is awesome — thanks so much for putting it together!

When I went to install it, though, I got the following warnings about missing peer dependencies:

$ yarn global add graphql-cli-gramps
yarn global v1.3.2
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "graphql-cli-gramps > @gramps/cli@1.1.4" has unmet peer dependency "graphql@^0.11.7 || ^0.12.0".
warning "graphql-cli-gramps > @gramps/gramps@1.1.0" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0".
warning "graphql-cli-gramps > @gramps/cli > graphql-playground-middleware-express@1.4.8" has unmet peer dependency "express@^4.16.2".
warning "graphql-cli-gramps > @gramps/gramps > graphql-tools@2.18.0" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0".
warning "graphql-cli-gramps > @gramps/cli > apollo-server-express > apollo-server-core@1.3.2" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0".
warning "graphql-cli-gramps > @gramps/gramps > graphql-tools > apollo-link@1.0.7" has unmet peer dependency "graphql@^0.11.3 || ^0.12.3".
warning "graphql-cli-gramps > @gramps/gramps > graphql-tools > graphql-subscriptions@0.5.6" has unmet peer dependency "graphql@^0.10.5 || ^0.11.3 || ^0.12.0".
warning "graphql-cli-gramps > @gramps/cli > apollo-server-express > apollo-server-core > apollo-cache-control@0.0.7" has unmet peer dependency "graphql@^0.10.0 || ^0.11.0".
warning "graphql-cli-gramps > @gramps/cli > apollo-server-express > apollo-server-core > apollo-tracing@0.1.1" has unmet peer dependency "graphql@^0.10.0 || ^0.11.0".
warning "graphql-cli-gramps > @gramps/cli > apollo-server-express > apollo-server-core > graphql-extensions@0.0.5" has unmet peer dependency "graphql@^0.10.0 || ^0.11.0".
[4/4] 📃  Building fresh packages...
warning "graphql-cli-gramps@0.1.0" has no binaries
✨  Done in 2.70s.

Attempting to run the command results in:

Too many non-option arguments: got 2, maximum of 1
Unknown arguments: gramps, dev

I assume that error is because the GrAMPS plugin is failing with missing peer deps.

Should we add the peer deps as deps in this plugin? Or just expect that anyone installing the plugin globally will also install Express and graphql globally?

kbrandwijk commented 6 years ago

No those are just warnings about the packages that still have no updated dependencies for graphql 0.12. I have heard from others that they have issues with using yarn to install global packages. Installing globally using npm, or installing locally, seemed to fix it for them.