Skip to content

[BUG] <npm help npm> "Edit this page on GitHub" invalid link #8212

@realyoterry

Description

@realyoterry

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

When I type > npm help npm in cmd, scroll right down and click "Edit this page on GitHub", it opens up https://github.com/npm/cli/edit/latest/docs/content/commands/npm.md which is invalid.

Image

Expected Behavior

I expected the link to work. The link should go to: https://github.com/npm/cli/blob/latest/docs/lib/content/commands/npm.md

Steps To Reproduce

  1. Windows 11 / npm 10.9.2
  2. Type npm help npm in command prompt / terminal
  3. Scroll all the way down to the "Edit this page on GitHub" link
  4. Click on it.

Environment

  • npm: 10.9.2
  • Node.js: v22.14.0
  • OS Name: Windows 11 24H2
  • npm config:
; "builtin" config from C:\Program Files\nodejs\node_modules\npm\npmrc

prefix = "C:\\Users\\thete\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; node version = v22.14.0
; npm local prefix = C:\Users\thete
; npm version = 10.9.2
; cwd = C:\Users\thete
; HOME = C:\Users\thete
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingGood First Issuegood issue or PR for newcomersPriority 2secondary priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions