[BUG] Npm pack (via publish via lerna version) returns Bash exited with code '1'
#4157
Open
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
After upgrading to
node@16.13.1
andnpm@8.2.0
I keep getting errors when publishing packages:(npm pack is called initially from
lerna
)All of the packages are published, but this error stops the build pipeline.
It's tracked down to
zlib
which is used bynpm pack
: isaacs/minizlib#8 (comment)I also experienced a different ZlibError before: lerna/lerna#2278, and that solved it by upgrading to
node@14
.This issue was introduced when Azure upgraded the Ubuntu 20.04 image to use
node@16
: actions/runner-images#4446We cannot downgrade the image our selves, or use the suggested
yarn
solution mentioned here: lerna/lerna#2278 (comment)Expected Behavior
With this setup, no errors are returned
Steps To Reproduce
Only reproducable with
lerna publish
, could it be because the publish package process (pack and publish) is too fast, or not enough time between tasks?Environment
The text was updated successfully, but these errors were encountered: