Npm install from private project registry returning E404

I’m not sure is the topic actual, but probably the issue with

npm config set -- //https://my-gitlab-instance.com/:_authToken=<secret>

just remove https://

npm config set -- //my-gitlab-instance.com/:_authToken=<secret>