You run bundle update, kick off a build, and asset precompilation stops on this:”
cssbundling-rails: Command install failed, ensure bun is installed
Tasks: TOP => assets:precompile => css:build => css:install
Except your application uses Yarn. It has always used Yarn. Nothing in the project references Bun, and nobody on the team added it.
This is not an exotic edge case. It can happen to ordinary Yarn applications, and it lingers because the fix has been merged upstream but never released. In this post, we’ll walk through why cssbundling-rails misidentifies your package manager, and how to unblock your build.