Skip to content

bunx ng update ignores package manager, defaults to npm #31128

Closed

Description

@markgoho

Command

update

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

bunx ng update @angular/cli uses npm to install packages resulting in a package-lock.json file which otherwise wouldn't exist

Minimal Reproduction

have angular installed with bun, run bunx ng update @angular/cli see that a package-lock.json file is created because it used npm to install the update

Exception or Error


Your Environment

-terminal
Angular CLI: 20.2.2
Node: 20.19.4
Package Manager: npm 10.8.2 // probably the root of the issue, Angular doesn't know how to detect bun
OS: win32 x64
    

Angular: 20.2.3
... common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                      Version
------------------------------------
@angular-devkit/architect    0.2002.2
@angular-devkit/core         20.2.2
@angular-devkit/schematics   20.2.2
@angular/build               20.2.2
@angular/cli                 20.2.2
@angular/fire                20.0.1
@schematics/angular          20.2.2
rxjs                         7.8.2
typescript                   5.9.2

Anything else relevant?

No response

Activity

  1. changed the title [-]ng update ignores package manager, defaults to npm[/-] [+]bunx ng update ignores package manager, defaults to npm[/+] on Sep 7, 2025
  2. JoostK commented on Sep 7, 2025

    @JoostK
    Member

    This is likely because of https://bun.com/blog/bun-lock-text-lockfile, where Bun has switched from bun.lockb to bun.lock, whereas the CLI only tests for the presence of the binary lock file.

    You can work around it by setting an explicit packageManager in angular.json.

  3. added
    freq1: low
    on Sep 8, 2025
  4. added theissue type on Sep 8, 2025
  5. added 3 commits that reference this issue on Sep 8, 2025
    1844796
    3b972fe
    d22feef
  6. added a commit that references this issue on Sep 8, 2025
    f6ad41c
  7. added a commit that references this issue on Sep 8, 2025
    2037b91
  8. angular-automatic-lock-bot commented on Oct 9, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  9. locked and limited conversation to collaborators on Oct 9, 2025
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

    area: @angular/clifreq1: lowseverity5: regressiontype: bug/fix

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions