Gitlab redirecting to while trying to download NPM packages using instance-level npm endpoint

When trying to install a npm package from the gitlab private repository, It is redirecting to

Steps to reproduce:
When I deployed an NPM package to the package registry and tried to install the same package by providing the instance-level npm endpoint, I see it is redirecting to and getting a 404 response. But when I use a project-level npm endpoint, I am able to resolve the package.


npm -version

I am using the SaaS GitLab service.

Any help is greatly appreciated.

Hi, i got exactly the same problem (selfhosted gitlab)

 npm -v 

Gitlab 13.12.0