ai
ai copied to clipboard
Unsupported URL Type "workspace:": workspace:*
I'm hitting an error during npm install which is blocking my use of the repository.
Repro steps
- Clone the repository
- Open the directory with the cloned repo
- 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
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
Having the same issue following the same docs.
Following the docs, same issue.
Ran pnpm install instead, and it installed correctly.
Opened a PR here to fix the readme instructions: #158
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
I'll do a run on all of them next week; we might be ripping out pnpm and doing some rearrangement