To add packages from Gitlab, a custom registry must be added in the extension settings (Custom Registries).
GitLab hosts NPM packages for each project under a URL of the form https://<gitlab-instance-url>/api/v4/projects/PROJECT_ID/packages/npm/.
To add packages from a specific GitLab project, you need to know the PROJECT_ID of the project. You can find this ID in the project settings or URL.
Each project has its own NPM registry, so you need to add a separate entry for each project you want to access.
{
"siemens.apax-v3.registriesExplorer.customRegistries": [
{
"name": "My Gitlab Project",
"url": "https://<gitlab-instance-url>/api/v4/projects/PROJECT_ID/packages/npm/",
"registry_type": "gitlab",
}
]
}