Skip to content

[BUG] Option 2 of "upgrade npm on windows" made windows not recognize npm #332

Open
@Inspirateur

Description

@Inspirateur

What / Why

Option 2 of "upgrade npm on windows" made windows not recognize npm as a command
https://docs.npmjs.com/try-the-latest-stable-version-of-npm

How

I deleted npm and npm.cmd from nodejs/, and even though C:\Users\<username>\AppData\Roaming\npm is still listed in the path and npm config get prefix -g did return C:\Users\<username>\AppData\Roaming\npm, windows won't recognize npm as a command anymore.
(it turns out this folder is empty, I should have checked myself but I trusted the docs)

Expected Behavior

I think the doc should include a warning about this method being dangerous or just be clearer about who can apply it, because evidently I wasn't one of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentIssues or PRs related to the content of the docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions