-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect warnings reported by npm on fresh installation of Gatsby #13243
Comments
Thank you for opening this @co16353sidak So we updated
To get rid of the peer dependency warnings, we need to update these dependencies to
This is the only thing I'm not sure of but since it's a eslint plugin, it shouldn't affect core code but in a worse case scenario, should a couple of lint errors. Would you like to go ahead and open a PR updating these? |
@sidharthachatterjee would love to work on this 👍 |
@sidharthachatterjee not able to find a way to start working on this, how should I go about updating the dependencies mentioned above ? |
@co16353sidak Looks like the package.json is in the packages directory |
We have updated those dependencies before and ran into an issue with the |
Ah, right. But we don't use |
Yes, |
## Incorrect warnings reported by npm on fresh installation of Gatsby #13243 Basic maintenance, updating: - express-graphql to 0.7.1 - graphql-tools to 4.0.0 - eslint-plugin-graphql to v3.0.3
Fixed by #13296 |
Description
On following along with the tutorial and installing Gatsby globally on my machine I encountered this error from
npm
regarding wrong dependencies listed in some modules pf Gatsby.Steps to reproduce
I encountered this issue when I was installing Gatsby for the very first time, I feel that this warning will occur every time
npm
encounters with Gatsby (or these resources of Gatsby.)For some reason npm thinks that these modules don't need
Gatsby
as a peer dependency which seems like a fault because these modules are a core part of the framework.Expected result
On installation of Gatsby, there shouldn't be any incorrect dependency faults like the one that occurred in the screenshot.
Actual result
Aforementioned warnings reported by npm in the console.
Environment
System:
OS: macOS 10.14.4
CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.1 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Languages:
Python: 2.7.10 - /usr/bin/python
Browsers:
Chrome: 71.0.3578.98
Firefox: 64.0.2
Safari: 12.1
npmPackages:
gatsby: ^2.3.15 => 2.3.15
npmGlobalPackages:
gatsby-cli: 2.5.5
The text was updated successfully, but these errors were encountered: