diff --git a/railties/lib/rails/generators/rails/app/templates/bin/setup.tt b/railties/lib/rails/generators/rails/app/templates/bin/setup.tt index 4ab9814459d..55d728d3591 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/setup.tt +++ b/railties/lib/rails/generators/rails/app/templates/bin/setup.tt @@ -18,7 +18,7 @@ FileUtils.chdir APP_ROOT do <% if using_node? -%> # Install JavaScript dependencies - system("yarn check --check-files") || system!("yarn install") + system("yarn install --check-files") <% elsif using_bun? -%> # Install JavaScript dependencies