Skip to content

docs: warn that npx installs cannot self-update - #1755

Closed
Joesirven wants to merge 1 commit into
get-bb:mainfrom
Joesirven:fix/npx-pin-persistent-install
Closed

Joesirven wants to merge 1 commit into
get-bb:mainfrom
Joesirven:fix/npx-pin-persistent-install

Conversation

@Joesirven

Copy link
Copy Markdown

Fixes #1747.

npx bb-app@latest writes the resolved version into its cache entry as a caret range:

{ "dependencies": { "bb-app": "^0.35.1" }, "_npx": { "packages": ["bb-app@latest"] } }

^0.35.1 means >=0.35.1 <0.36.0. On later runs npm sees the cached tree satisfies that range, skips reinstalling, and never re-resolves latest. 0.37.0 cannot satisfy it, so the install is pinned to the 0.35.x line permanently. My install sat on 0.35.1 for 11 days with no error surfaced anywhere.

This adds a short section to the README documenting the pin and pointing at npm install --prefix for installs meant to persist, since that re-resolves latest on every run.

Docs only, no code change.

npx records the first resolved version as a caret range in its cache
entry, so an install created while latest was 0.35.1 pins to ^0.35.1 and
never resolves a later minor. The in-app update affordance then silently
does nothing.

Document the pin and recommend installing into a fixed prefix with npm
for any install intended to persist, since npm install re-resolves latest
on every run.

Refs get-bb#1747
@SawyerHood

Copy link
Copy Markdown
Collaborator

Closing this one. While reproducing #1747 we tested the central claim (that npx bb-app@latest materializes a ^0.35.1 caret pin and can never move to a new minor) against the reporter's exact npx cache entry: libnpmexec re-resolves the latest tag on every run and upgraded 0.35.1 → 0.38.0. So the warning this PR adds would document a non-bug. The real failure the reporter hit is the launcher printing "bb is ready" while the old server still owns the port, which is #1558.

Full write-up with the repro: https://get-bb.github.io/reports/issues/1747.html

Thanks for digging into it — if you have a case where npx really does stay pinned, please reopen with the cache entry and npm version.

AGENT GENERATED: by Claude Opus 5

@SawyerHood SawyerHood closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npx install pins bb to one minor line, so the update button silently does nothing

2 participants