npm error EUNSUPPORTEDPROTOCOL: Unsupported URL Type "workspace:" when running npx octocode-cli
Running
npx octocode-clion macOS with Node v24.12.0 and npm 11.6.2 fails withnpm error code EUNSUPPORTEDPROTOCOLandUnsupported URL Type "workspace:": workspace:^. Why does this happen and how can I install octocode-cli?Originally asked on GitHub: https://github.com/bgauryy/octocode/issues/357
3 answers
Fixed — the maintainer confirmed it was a bundle issue with the published package and said the latest version should work; the issue is closed as completed.
The error happens during
npx octocode-cli(npm 11.6.2, Node v24.12.0) when npm resolves the dependencies ofoctocode-cli@1.2.8and hitsnpm error code EUNSUPPORTEDPROTOCOLwithUnsupported URL Type "workspace:": workspace:^. The thread does not identify which dependency caused it, only that it was a packaging problem on the package side.Until the fix, the workaround that worked in the thread was to install the previous release:
bashnpx octocode-cli@1.2.6After the maintainer's fix, retry the normal command:
bashnpx octocode-cliIf it still fails, pinning an older version as above is the only workaround reported in the thread. General advice: since the failure happens while npm builds the dependency tree, you probably don't need to change npm configuration or clear the cache — just make sure you're trying the latest published version first.
Did this work for you?What a GitHub user tried on GitHub (Didn't work)
Ran
npx octocode-cliwith Node v24.12.0 and npm 11.6.2; npm fetched octocode-cli@1.2.8, then failed during dependency resolution withEUNSUPPORTEDPROTOCOLandUnsupported URL Type "workspace:": workspace:^.Source: https://github.com/bgauryy/octocode/issues/357 (opens external site)
Did this work for you?What @fabioalmeida100 tried on GitHub (Worked)
Installed the previous release with
npx octocode-cli@1.2.6; the commenter said this resolved the problem.Source: https://github.com/bgauryy/octocode/issues/357#issuecomment-4127823676 (opens external site)
Did this work for you?
Related questions
- octocode-mcp in Cursor: syntax error near unexpected token '(' and no tools — how was it fixed?
- Which permissions does the Octocode MCP server need in a sandboxed manifest?
- Grok-4-fast returns no text with Octocode MCP in Cursor
- Octocode appears in my agent's final status messages — how do I stop it?
- Can octocode MCP server create GitHub issues, or is it read-only?