You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: npm 11 cannot install URLCode pinned as a git dependency (arborist load-virtual null-parent error) #440
npm install of URLCode pinned as a git dependency (git+ssh://.../urlcode.git#<sha> or equivalent) fails under npm 11.19.1 with:
Cannot read properties of null (reading 'parent')
thrown from @npmcli/arborist during load-virtual, while resolving URLCode's workspace metadata. The failure happens after npm successfully fetches the pinned codeload archive — it's specifically the workspace-aware dependency resolution step that breaks.
pnpm install of the identical pinned git spec succeeds, so this is npm/arborist-specific, not a problem with the git ref or package contents.
Evidence
Reproduced independently in 3 of 7 arms across a benchmark run (urlcode-benchmarks/runs/test3/{auth-profile,form-lab,url-shortener}/feedback/b-1.json), each with an agent pinning URLCode via the exact git commit spec and running npm install:
auth-profile: "npm 11.19.1 failed to install the pinned URLCode Git dependency with a null-parent error while resolving its workspace metadata."
form-lab: "npm 11 could not install the pinned Git dependency and failed with a null parent resolver error... pnpm installed the same pinned dependency successfully."
url-shortener: "Each exact Git install attempt fetched the commit archive and then failed in @npmcli/arborist load-virtual with: Cannot read properties of null (reading 'parent')."
The benchmark harness's own framework-check.test.mjs treats a git-commit pin (git+ssh://[email protected]/jimhoyd-com/urlcode.git#<revision>) as a legitimate, supported install path (see goodB fixture in that test), so this isn't an unsupported use case — it's a documented one that's currently broken for a large share of real npm installs.
Impact
This silently invalidated 3 of 7 scenario runs in the benchmark suite (status: "invalid-run", "framework not used"), and would equally block any real user or agent pinning an unreleased/dev commit of URLCode via npm on a workspace-containing git checkout.
Suggested fix
Either:
Publish/document a git-install path that npm 11's arborist can resolve for a workspace repository (e.g. avoid the top-level workspaces field being visible to a git-dependency consumer, or ship a package-only subdirectory/archive install target), or
Document pnpm as the required tool for pinning URLCode by git ref, if npm support isn't feasible.
Activity
Fix issues #440, #439, #258: git-install docs, llms.txt links, env ho…