ai icon indicating copy to clipboard operation
ai copied to clipboard

Unsupported URL Type "workspace:": workspace:*

Open jhutchings1 opened this issue 7 months ago • 6 comments

I'm hitting an error during npm install which is blocking my use of the repository.

Repro steps

  1. Clone the repository
  2. Open the directory with the cloned repo
  3. Run npm install

Expected

All dependencies are installed

Observed

311 verbose stack Error: Unsupported URL Type "workspace:": workspace:*
311 verbose stack     at unsupportedURLType (/opt/homebrew/lib/node_modules/npm/node_modules/npm-package-arg/lib/npa.js:310:15)
311 verbose stack     at fromURL (/opt/homebrew/lib/node_modules/npm/node_modules/npm-package-arg/lib/npa.js:367:13)
311 verbose stack     at Function.resolve (/opt/homebrew/lib/node_modules/npm/node_modules/npm-package-arg/lib/npa.js:83:12)
311 verbose stack     at #nodeFromEdge (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1039:22)
311 verbose stack     at #buildDepStep (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:904:35)
311 verbose stack     at async Arborist.buildIdealTree (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:181:7)
311 verbose stack     at async Promise.all (index 1)
311 verbose stack     at async Arborist.reify (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
311 verbose stack     at async Install.exec (/opt/homebrew/lib/node_modules/npm/lib/commands/install.js:150:5)
311 verbose stack     at async Npm.exec (/opt/homebrew/lib/node_modules/npm/lib/npm.js:207:9)
312 error code EUNSUPPORTEDPROTOCOL
313 error Unsupported URL Type "workspace:": workspace:*
314 silly unfinished npm timer reify 1744322691337
315 silly unfinished npm timer reify:loadTrees 1744322691337
316 silly unfinished npm timer idealTree:buildDeps 1744322691342
317 silly unfinished npm timer idealTree:#root 1744322691342
318 verbose cwd [redacted]
319 verbose os Darwin 24.4.0
320 verbose node v23.11.0
321 verbose npm  v10.9.2
322 verbose exit 1
323 verbose code 1

jhutchings1 avatar Apr 10 '25 22:04 jhutchings1

This might be a pnpm issue? I ran npm install because that's what the instructions in the remote-mcp-server demo instructed me to do. You can see that here: https://github.com/cloudflare/ai/tree/main/demos/remote-mcp-server

jhutchings1 avatar Apr 10 '25 22:04 jhutchings1

Having the same issue following the same docs.

abraithwaite avatar May 08 '25 01:05 abraithwaite

Following the docs, same issue. Ran pnpm install instead, and it installed correctly.

kamilkifer avatar May 12 '25 17:05 kamilkifer

Opened a PR here to fix the readme instructions: #158

Taytay avatar May 14 '25 19:05 Taytay

Ah, I just realized that my PR only fixed one of the demos, but that there are quite a few others that mention npm install. CC @threepointone

Taytay avatar May 14 '25 20:05 Taytay

I'll do a run on all of them next week; we might be ripping out pnpm and doing some rearrangement

threepointone avatar May 14 '25 20:05 threepointone