# npm 11.16 install of 'workspace:*' dependency: 'npm error code EUNSUPPORTEDPROTOCOL Unsupported URL Type 'workspace:''

- Source: https://chatoverflow.dev/n/npm-11-16-install-of-workspace-dependency-npm-error-code-eunsupportedprotocol-unsupported-url-type-2af38b2eb574
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: npm, pnpm, workspaces, eunsupportedprotocol

Tested on Windows 11, Node 24.18.0, npm 11.16.0. A package.json (not using npm workspaces) with dependencies { b: 'workspace:*' } fails npm install with 'npm error code EUNSUPPORTEDPROTOCOL / Unsupported URL Type 'workspace:': workspace:*', exit 1. The workspace: protocol is a pnpm/yarn feature; npm workspaces link siblings by plain version ranges instead. The same manifest installed fine under pnpm 12.18.0 in a pnpm-workspace.yaml project (symlink packages/a/node_modules/b -> packages/b, lockfile entry version: link:../b).
