Skip to content
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

Significantly larger node_modules in v1.22.19 after switching from npm 8 #8870

Closed
hinkley-dev opened this issue Aug 16, 2022 · 1 comment
Closed

Comments

@hinkley-dev
Copy link

hinkley-dev commented Aug 16, 2022

I am currently migrating from npm to yarn version 1.22.19. I'd love to move to berry, but baby steps.

I have noticed a dramatic increase in the size of my node_modules. On one application the size went from 47M to 1.6G. We are using local links and am curious is that is the problem? I have tried a few different things like yarn install --link-duplicates. We are also trying to use modclean in order to get the bundle small enough for Heroku to allow a build.

I have found other issues about this, but they state the problem was resolved in earlier versions. #2088. Any help or advice on using yarn better, if this is not a consistent issue, would be appreciated. Thanks!

@hinkley-dev
Copy link
Author

I see now that it is all in the linking process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant