Skip to content

[BUG] npm update: EUNSUPPORTEDPROTOCOL #8387

Open
@thany

Description

@thany

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

Doing an npm update may result in an EUNSUPPORTEDPROTOCOL message:

npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "link:": link:
npm error A complete log of this run can be found in: [...]

The detailed log only shows in which source file the error was thrown, which is useless for me as an end-user.

Expected Behavior

It should say where it has found this unsupported protocol.

And optionally, just ignore it. In my case, I've done a search through the node_modules directory, and found only link: instances in devDependencies, which are packages that should NOT be installed, nor updated. So it also shouldn't trip over them.

Steps To Reproduce

  1. Have any package installed with a literal link: in the devDependencies. For example, vite.
  2. npm update

This is irrelevant though, it should just say (generally speaking even) where it has found whatever causes an error.

Environment

  • npm: 11.4.2
  • Node.js: 22.16.0
  • OS Name: Windows 10
  • System Model Name: ?
  • npm config:
prefix = "C:\\Users\\thany\\AppData\\Roaming\\npm"
legacy-peer-deps = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions