Intended outcome:
Successful packages installation
Actual outcome:
npm WARN [email protected] requires a peer of graphql@^0.11.3 || ^0.12.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.0 || ^0.11.0 || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.11.0 || ^0.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.11.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
added 14 packages in 14.528s
How to reproduce the issue:
I am following the documentation in https://www.apollographql.com/docs/react/basics/setup.html, specifically:
npm install apollo-client-preset react-apollo graphql-tag graphql --save
I also tried
npm install apollo-client apollo-cache-inmemory apollo-link-http react-apollo graphql-tag graphql --save
Version
* Temporary workaround *
change graphql from ^0.13.0 to ^0.11.7
Same here!!
Any resolve for this?
any news?
@bsotodo The warning should be surpressed by installing a "compatible" version (npm install [email protected])
I had to downgrade for that but cool, the warning is gone and everything is working. Thanks @n1ru4l
Closing as out of date, confirmed more lenient peer dependencies:
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
Most helpful comment
Any resolve for this?