Skip to content

Conversation

@MaxBlack-dev
Copy link
Contributor

@MaxBlack-dev MaxBlack-dev commented Dec 3, 2025

Description

This PR fixes the incorrect alias syntax in the package-spec documentation examples.

Changes

  • Fixed three alias examples that incorrectly used : instead of @ before npm:
    • semver:@npm:...semver@npm:...

Details

The documentation format specification states:

<alias>@npm:<name>

However, the examples were showing:

semver:@npm:semver@7.2.2

Which fails with error:

npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "semver:": semver:@npm:semver@7.2.2

The correct syntax is:

semver@npm:semver@7.2.2

Fixes

Related #8223 (partially - addresses the documentation error identified in the comments)

@MaxBlack-dev MaxBlack-dev requested a review from a team as a code owner December 3, 2025 20:02
Copy link
Contributor

@owlstronaut owlstronaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the description so it won't close the related PR as it is a little more than just a documentation issue

@owlstronaut owlstronaut merged commit 3f48487 into npm:latest Dec 3, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants