Skip to content

Installing of packages from a private gitlab registry fails with 404 #7807

Description

@luiskugel

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

8.15.5

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

Dependencies resolver

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

No response

Reproduction steps

This is my .npmrc file:

//registry.npmjs.org/:_authToken=npm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//git.idot.digital/api/v4/packages/npm/:_authToken=xxxxx-xxxxxxxxxxxxxxxxxxxxxx
//git.idot.digital/api/v4/packages/npm/:always-auth=true
@idot-digital:registry=https://git.idot.digital/api/v4/packages/npm/
@digital-sun-solutions:registry=https://git.idot.digital/api/v4/packages/npm/
always-auth=true
registry=https://registry.npmjs.com/

i just ran:

pnpm install @idot-digital/function-generator

Describe the Bug

When i try to install a package from my private gitlab registry. i get a 404 error:

ERR_PNPM_FETCH_404  GET https://git.idot.digital/api/v4/projects/57/packages/npm/@idot-digital/function-generator/-/@idot-digital/function-generator-2.23.3.tgz: Not Found - 404

But it succeeds with npm

Expected Behavior

To download the package just like npm.

Which Node.js version are you using?

20.11.1

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions