Skip to content
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

Error caching npm package from gitlab private registry #27759

Open
JarekToro opened this issue Jan 21, 2025 · 5 comments
Open

Error caching npm package from gitlab private registry #27759

JarekToro opened this issue Jan 21, 2025 · 5 comments
Labels
needs investigation requires further investigation before determining if it is an issue or not

Comments

@JarekToro
Copy link

Version: Deno 2.1.6

Seems to be related to #25924
But either was not entirely fixed by #26473 or has since regressed. But I believe it is the latter as It also failed on 2.0.3

.npmrc

@privateregistryname:registry=https://gitlab.company.engineering/api/v4/packages/npm/
//gitlab.company.engineering/api/v4/packages/npm/:_authToken=XXXXXXX

deno.json

{
  "imports": {
    "@privateregistryname/package-name": "npm:@privateregistryname/[email protected]"
  }
}

Command

deno install
error: Failed caching npm package '@privateregistryname/[email protected]'

Caused by:
    Could not find npm package tarball at: 
https://gitlab.company.engineering/api/v4/projects/4055/packages/npm/@privateregistryname/package-name/-/@privateregistryname/package-name-1.0.0.tgz_
@marvinhagemeister
Copy link
Contributor

marvinhagemeister commented Jan 21, 2025

I just tried it out and I can both publish and install packages from the GitLab npm registry without any issues.

Is the domain correct? Is the project id correct? Does the package with the matching version exist in the registry?

@marvinhagemeister marvinhagemeister added the needs info needs further information to be properly triaged label Jan 21, 2025
@JarekToro
Copy link
Author

The domain is correct. Upon further debugging. Deno seems to have problems when using gitlab instance level registry setup.

example:

@privateregistryname:registry=https://gitlab.company.engineering/api/v4/packages/npm/

However it does work when using a project level registry setup

example:

@privateregistryname:registry=https://gitlab.company.engineering/api/v4/projects/4055/packages/npm/ 

@marvinhagemeister
Copy link
Contributor

Right, I was only trying out the project level setup.

@JarekToro
Copy link
Author

@marvinhagemeister Does this ticket need anymore info?

@marvinhagemeister marvinhagemeister added needs investigation requires further investigation before determining if it is an issue or not and removed needs info needs further information to be properly triaged labels Jan 21, 2025
@marvinhagemeister
Copy link
Contributor

no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation requires further investigation before determining if it is an issue or not
Projects
None yet
Development

No branches or pull requests

2 participants