Skip to content

404 for NPM scoped packages #77

Description

@daniel-shuy

diligent doesn't work with NPM scoped packages (eg. @angular/cli).

This is because 44419b8 changed the NPM registry URL from https://registry.npmjs.org/{package}/{version} to https://registry.npmjs.org/{package}?version={version}, which for some weird reason doesn't support scoped packages, even if the slash (/) is URL encoded as %2F.

I've sent an email to NPM support about this behavior, but its unlikely that they will address it anytime soon.

To revert back to using https://registry.npmjs.org/{package}/{version}, we need to strip any symbols before the version, as https://registry.npmjs.org/{package}/{version} only supports exact versions, unlike https://registry.npmjs.org/{package}?version={version}.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions