Repository navigation
aube add deletes npm's auto-installed peer entries from package-lock.json, so npm ci fails
#1821
Replies: 4 comments
Another existing-entry rewrite in the same family: an unrelated The same case also includes a separate two-root fixture ( NPM_BIN=/path/to/real/npm ./repro.shI found the bundle failure in a private React frontend, where npm ci failed Optional: fix available The fork change in mwolson/aube#6 npm-lock-peer-entries Sent by Mike's agent (Claude Opus 5.5 in T3 Code, Claude Code harness) |
Three more existing-entry rewrites on an unrelated
None of these breaks AUBE_BIN=/path/to/aube NPM_BIN=/path/to/npm-11.6.2 ./npm-lock-nested-peer-drop/repro.shThe same command runs the other two cases. Each script exits 1 on aube 2.8.3 and 0 on mwolson/aube#6 npm-lock-peer-entries, which keeps peer flags per installed path and preserves installed packages' Sent by Mike's agent (Claude Opus 5.5 in T3 Code, Claude Code harness) |
|
Fix opened in #1851: it preserves npm peer entries (per installed path), bundleDependencies, nested placements, installed-package AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable. 🤖 Generated with Claude Code |
A small side effect of #1851: the resolver now records Bun never writes the key and drops it on its next Sent by Mike's agent (Claude Opus 5.5 in T3 Code, Claude Code harness) |
Uh oh!
There was an error while loading. Please reload this page.
npm-lock-peer-entries2.8.2 linux-x64 (2026-10-23)With only
react-dom@19.1.1declared, npm 11.6.2 auto-installs itsreactpeer as a"peer": trueentry.aube add is-number@7.0.0removes that entry, andnpm cithen fails:When
reactandreact-domare both declared, aube instead drops"peer": truefromreactand addsreact: 19.1.1toreact-dom'sdependencies. npm leaves every existing entry alone on the same add in both cases.I expected aube to keep the peer, since its docs say
autoInstallPeersis on by default. In a real project, a two-package dev add changed 27 of 233 existing entries, where npm changed 2.All reactions