-
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
Gatsby not working after yarn install #23312
Comments
What are the differences you see? |
Pretty much every dependency folder has different size, but the most notable issue is that |
What version of yarn are you using? |
yarn v1.22.4 |
What worked in my case was cleaning my cache with |
I checked documentation (https://classic.yarnpkg.com/en/docs/cli/global), Add the following line to
And you're done. If this doesn't work for you, you can search for your yarn bin directory with the following command:
Then replace (yarn bin path) on
Hope this helps anyone struggling to solve this |
Description
Having a pretty weird issue. My Gatsby app used to run just fine. Today I updated to v2.20.26 using yarn as usual. From that point on, running any command, like
gatsby develop
returned me this error:I tried
gatsby clean
,rm -rf node_modules
, even rolling back to a previously working app... nothing... Always triggering that error. Then I triednpm install
and that's working.So, after a couple of tests, I noticed that if I clean
node_modules
and usenpm install
, everything works. Withyarn install
it doesn't. Tried also removingpackage-lock.json
andyarn.lock
. Nothing seems to help yarn.If I install via npm and then run any command with yarn, it will work just fine. So apparently there's an issue with yarn install. I'm running yarn v1.22.4 and always worked fine till today.
I tried comparing the contents of the
node_modules
directory using both package managers (with no lock files) and they actually differ.The text was updated successfully, but these errors were encountered: