Npm install from gitlab package registry not working

I’ve published an npm package to my private group. This is the link for npm: https://gitlab.com/api/v4/packages/npm/@coeng2020%2Fservice-fetcher

using npm i @coeng2020/service-fetcher i get a 404 not found message.

But when I paste the link in a broswer, I get a 304 with all the required info for npm.

Is there something Im missing from my setup?

i’ve also ran this command already in my repo: echo @coeng2020:registry=https://gitlab.com/api/v4/packages/npm/ >> .npmrc

Please help

For private projects make sure you’ve also setup authentication to the registry for it to be able to resolve your project and package: https://docs.gitlab.com/ee/user/packages/npm_registry/#authenticate-with-a-personal-access-token-or-deploy-token