Installing self-managed packages from gitlab registry in gitlab-ci

Hi I am facing an issue when trying to install a self-managed node package from gitlab registry.

In my .npmrc I have the following config

In my gitlab ci
when I install the package using @owner/package-name@^1.0.0 it works fine
but I want to install the package as an alias so I am using the below command

npm install alias@npm:@owner/package-name@^1.0.0

during which I get a 404 project is not in this registry

Does anyone know what the issue could be here?