Open WIStudent opened 1 year ago
Hi @WIStudent thanks for opening an issue. Our support for NPM is geared towards supporting the NPM client, and it does not appear this API you've identified is required to support the NPM client. We'll leave this issue open to gauge interest from the community.
However, the lack of this API will cause errors in some clients that are compatible with the official registry API. Can you reconsider adding this API to ensure compatibility with the official registry?
I have a hosted npm repository
my-npm
and published an npm package@foo/bar
with version1.0.0
to it. According to the npm registry API documentation the endpoint/{package}/{version}
should return information about that specific version, buthttp://localhost:8081/repository/my-npm/@foo%2Fbar/1.0.0
returned400 Bad Request
.If I publish an unscoped package (e.g.
foo
),http://localhost:8081/repository/my-npm/foo/1.0.0
does not respond with HTTP Code400
but with404
and bodyNo
GitHub's dependabot uses the
/{package}/{version}
endpoint to request specific package versions from npm registries. Without this endpoint dependabot cannot check nexus hosted npm repositories for updated packages.Implement the
/{package}/{version}
endpoint and return version specific package information like npmjs.com does (e.g. https://registry.npmjs.com/semver/6.3.1)I used the latest sonartype/nexus3 docker image (which should be version 3.58.1) to verify this issue.