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
The size of the npm_package_noticeText env variable is too large for node.js #7783
Comments
We just got hit by this as well. The description matches what I see with:
However, in an Ubuntu build machine in an Azure DevOps Pipeline, the same issue manifests with a different error message:
and in an older build machine:
|
Note, it's not just files named yarn/src/util/normalize-manifest/fix.js Lines 331 to 335 in a75dbe3
I'm not super familiar with Yarn's code, but based on #7419 I suspect it might be as simple as adding yarn/src/util/execute-lifecycle-script.js Lines 21 to 27 in a75dbe3
|
This appears to be fixed now. |
This still happens in Node 14.18.2 and yarn 1.22.17 with a large |
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
Starting with Node 12.11, they use libuv to lookup environment variables. Yarn creates a variable called
npm_package_noticeText
which contains the full contents of a package's NOTICE.txt file and can exceed the max size allowable by libuv. This causes yarn commands to fail when packaging the CMake Tools extension for VS Code.If the current behavior is a bug, please provide the steps to reproduce.
Repro steps:
npm install -g vsce
c:\git
)git clone https://github.com/microsoft/vscode-cmake-tools.git
cd vscode-cmake-tools
vsce package --yarn
What is the expected behavior?
vscode-cmake-tools
folderActual Behavior:
Please mention your node.js, yarn and operating system version.
node.js >= 12.11
yarn = 1.21.1
OS = Windows 10 18362
The text was updated successfully, but these errors were encountered: