Skip to content

REFLEX_USE_NPM=1 silently persists the npm choice after the environment variable is removed #7093

Closed

Description

@masenf
  • Cluster: orch_probes | Regression: no | Also closes the previous campaign's FINDING-018, which
    did not reproduce here: the npm → bun switch is clean.
  • Three runs of a fresh blank app in one directory: with REFLEX_USE_NPM=1, npm installs everything
    under node 22 and the page is clean; the next run, with no env var, silently uses npm again,
    because reflex chooses the installer from the persisted lockfile; deleting
    reflex.lock/package-lock.json and .web/package-lock.json restores bun 1.4.0 and writes
    bun.lock. Nothing announces the sticky state, and while it lasts the project never gets the Bun
    1.4 lockfile behaviour this train ships.
  • Evidence: orch_probes/NOTES.md, orch_probes/logs/{npm_run,bun_after_npm,bun_after_rmlock}.trimmed.log.

Related #6976 covers a failed npm run leaving inconsistent lockfiles. This report is distinct: a successful npm run persists the manager choice without explaining it; the old failed-switch reproduction did not reproduce in this campaign. Expected: clearly explain and document the persisted choice and supported switch-back procedure, or honor the unset override.

Source: prerelease finding 021, recorded against Reflex 0.9.11a1 and compared with 0.9.10.post2. See the full campaign report and cluster notes and reproduction artifacts. Findings and verification status above are from that campaign; this filing does not claim a new browser rerun.

Activity

  1. linear-code commented on Sep 11, 2026

    @linear-code
  2. added
    release-train
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    release-train

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions