-
Notifications
You must be signed in to change notification settings - Fork 352
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
yarn add netlify-cli fails with "JavaScript heap out of memory" #3788
Comments
This is currently being escalated as it is causing deployment failures for builds which require |
It turns out that this is an issue in I have tested in an Ubuntu VM with 4 GiB of memory and I can consistently reproduce this error with Yarn always returns the To summarize, this appears to be a |
I tried rolling back to older yarn versions like The only workaround I can find is to use |
@overlordofmu I found the same as you when I investigated. Even using versions of Installing |
I wonder if we can trace and find the exact change/sub-dependency of |
Hello all 👋 We're actively looking into this. The current workaround is using @kirillgroshkov this is happening on very old yarn + CLI versions too, and with other packages (see yarnpkg/yarn#8734), so not sure this was caused by a CLI change. |
You can also track this via our status page https://www.netlifystatus.com/. We're currently trying to figure out if there's a workaround that doesn't involve people changing a package manager |
Hi all 👋 For those who are installing the CLI locally, can you try adding the following to your package.json:
This will pin one of the CLI's dependencies when installing with |
@erezrokah I've tested locally with an empty folder and fresh package.json. I confirm that the install completes successfully with the provided resolution, (and that it still fails if I remove it). |
Thank you for confirming @knupska ❤️ |
The timeline for this is next week, as we're already very close to removing |
FYI we are tracking this at the oclif level here: oclif/oclif#758 |
There is a temporary fix out there for this now, please see oclif/oclif#758 (comment) for more details. |
Thanks for the follow up @RodEsp! I can confirm the installation goes through now with Closing this issue. Please comment if this issue has not been resolved for you. |
I can also confirm that this fixes the issue for our site on Netlify. It's odd because we've been using the same Yarn version for months without hitting this issue. |
The underlying problem is with It doesn't happen with the
|
then add to
then
|
Looks like this is related |
Describe the bug
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory occurs when adding
netlify-cli
with yarn.Originally identified on the forums https://answers.netlify.com/t/error-adding-netlify-cli-with-yarn/48579
To Reproduce
Steps to reproduce the behavior:
yarn add netlify-cli
Configuration
% npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli System: OS: macOS 12.0.1 CPU: (12) x64 Intel(R) Core(TM) i5-10600 CPU @ 3.30GHz Memory: 1.76 GB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.1 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 8.1.2 - /usr/local/bin/npm npmPackages: netlify-cli: ^8.0.19 => 8.0.19 npmGlobalPackages: netlify-cli: 8.0.19
Expected behavior
Install to not error
CLI Output
Additional context
Works with
npm add netlify-cli
The text was updated successfully, but these errors were encountered: