Skip to content

running bun install while bun is running a watched proceess will cause bun to break in that repo #19934

@Pckool

Description

@Pckool

What version of Bun is running?

1.2.14+6a363a38d

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

Not sure if this is a Mac only thing, but this has been a long running issue I've had. If I run some typescript code with bun; then, while the process is running, call bun install, it will cause bun to no longer work within the repo. I have to stop the running code, remove my node_modules folder entirely and reinstall my modules to get it to work again. It basically just hangs.

So:

  • create a typescript repo
  • start running a script like a dev server or something
  • call bun install in another terminal on the same repo (while the script is running)
  • stop the process
  • when you try to run the script again, it will hang indefinitely

What is the expected behavior?

For me to call bun install while bun is running a script and for it to not break

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbun --watchbun installSomething that relates to the npm-compatible clientmacOSAn issue that occurs on macOSneeds investigateNeeds to be investigated to find the root cause

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions