Open Huliiiiii opened 1 month ago
We have most of our scripts starting with "bunx" now to work with bun install
. That's what seems to work.
I'm guessing if this is your format script, it will work on Windows (Mac/Linux seem fine without specifying bunx - I'd be interested in more detail on that since this seems like an obscure error).
"bunx prettier --write ./src"
I'm also on Windows and encountered the same issue with our scripts, in addition to "bunx" we found that the "--bun" flag was needed at times as well.
For prettier, bunx --bun prettier --write ./src
should work.
What version of Bun is running?
1.1.9+bb13798d9
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
Bun failed to remap this bin to its proper location within node_modules. This is an indication of a corrupted node_modules directory.
Please run 'bun install --force' in the project root and try it again. If this message persists, please open an issue: https://github.com/oven-sh/bun/issues
error: script "commit" exited with code 255