Repository navigation
Conversation
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
|
Closing this one. While reproducing #1747 we tested the central claim (that 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.
|
Fixes #1747.
npx bb-app@latestwrites the resolved version into its cache entry as a caret range:{ "dependencies": { "bb-app": "^0.35.1" }, "_npx": { "packages": ["bb-app@latest"] } }^0.35.1means>=0.35.1 <0.36.0. On later runs npm sees the cached tree satisfies that range, skips reinstalling, and never re-resolveslatest. 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 --prefixfor installs meant to persist, since that re-resolveslateston every run.Docs only, no code change.