pnpm icon indicating copy to clipboard operation
pnpm copied to clipboard

ERR_PNPM_TARBALL_EXTRACT

Open morhaham2 opened this issue 1 year ago • 4 comments

Verify latest release

  • [X] I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

with [email protected] run: pnpm add @radix-ui/react-alert-dialog

Describe the Bug

Downgrading to [email protected] fixes the issue

Command failed with exit code 1: pnpm add @radix-ui/react-alert-dialog
../..                                    | Progress: resolved 0, reused 1, downloaded 0, added 0
../..                                    | Progress: resolved 49, reused 49, downloaded 0, added 0
../..                                    | Progress: resolved 88, reused 75, downloaded 0, added 0
../..                                    | Progress: resolved 262, reused 204, downloaded 0, added 0
../..                                    | Progress: resolved 502, reused 449, downloaded 0, added 0
 WARN  GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz error (ERR_PNPM_TARBALL_EXTRACT). Will retry in 10 seconds. 2 retries left.
../..                                    | Progress: resolved 516, reused 463, downloaded 0, added 0
 WARN  GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz error (ERR_PNPM_TARBALL_EXTRACT). Will retry in 1 minute. 1 retries left.
C:\Users\codeoasis-vpn-03\projects\checkin-client:
 ERR_PNPM_TARBALL_EXTRACT  Failed to unpack the tarball from "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz": TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))

This error happened while installing the dependencies of [email protected]
 at [email protected]
 at [email protected]
 at [email protected]

Expected Behavior

pnpm could install this kind of package

Which Node.js version are you using?

20.0.10

Which operating systems have you used?

  • [ ] macOS
  • [X] Windows
  • [ ] Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

morhaham2 avatar Jan 16 '24 20:01 morhaham2

Getting same issue

PS D:\astro\NewInstaUi> pnpm add astro
 WARN  GET https://registry.npmjs.org/astro/-/astro-4.2.4.tgz error (ERR_PNPM_TARBALL_EXTRACT). Will retry in 10 seconds. 2 retries left.
 WARN  1 deprecated subdependencies found: [email protected]
Packages: +644
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
 WARN  GET https://registry.npmjs.org/astro/-/astro-4.2.4.tgz error (ERR_PNPM_TARBALL_EXTRACT). Will retry in 1 minute. 1 retries left.
Progress: resolved 699, reused 645, downloaded 0, added 0

codingstark-dev avatar Jan 25 '24 16:01 codingstark-dev

I cannot reproduce this on Linux. Maybe this issue is exclusive to Windows.

KSXGitHub avatar Jan 29 '24 08:01 KSXGitHub

I tried to reproduce it, but I couldn't, let's try to find some specific configurations.

  • Which Windows version? (Not only if win11 or 10, the exact version, like 23H2)
  • Do you have Windows Dev Drives? The error happens on those or the regular Drives?
  • Do you have the Developer mode enabled? If you don't, does the issue happen if enabled?

@codingstark-dev @morhaham2 please, provide this information so I can try to check this issue, thanks!

nachoaldamav avatar Jan 30 '24 11:01 nachoaldamav

One of my colleagues encountered this issue several times recently on Mac, but I can't reproduce it at all...

Here's the log:

GET https://[our_private_npm]/@yarnpkg/parsers/-/parsers-3.0.0-rc.48.1.tgz error (ERR_PNPM_TARBALL_EXTRACT). Will retry in 1 minute. 1 retries left.
 ERR_PNPM_TARBALL_EXTRACT  Failed to unpack the tarball from "https://[our_private_npm]/@yarnpkg/parsers/-/parsers-3.0.0-rc.48.1.tgz": Error: Invalid checksum for TAR header at offset 208384. Expected 0, got 5578

He resolves the issue by removing the lock file and executing pnpm i. It always works instantly.

I'll update here if I have more stable reproducing steps.

RexSkz avatar Jan 30 '24 15:01 RexSkz