Skip to content

[BUG] TAR_BAD_ARCHIVE: Unrecognized archive format #3229

Description

@jougene

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I try to install package from private gitlab repository via git+https with user and password, I get multiple

TAR_ENTRY_INVALID checksum failure

errors, and at the end of them -
TAR_BAD_ARCHIVE: Unrecognized archive format
error.

If I enable verbose logging (npm install --ddd), I can see that somewhere in installation process I had been redirected on main gitlab page for Sign In -

npm http fetch GET 200 https://npm:***@gitlab.private_organisation.com/users/sign_in 674ms

I already tried with node 16 and npm version 6.14.13, and this error did not occur

Expected Behavior

My private package, located in gitlab has been installed successefully

Steps To Reproduce

  1. Add some gitlab private repository in your package.json
    "private-package": "git+https://user:pass@gitlab.privateorg.com/project/package#commithash"
  2. Run npm install
  3. See above error...

Environment

  • OS: Ubuntu 20.04.2 LTS
  • Node: 16.1.0
  • npm: 7.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions