V12 bench build error

I have switched to branch version-12 but bench build yields the following error with a yarn error log has indicated bellow

$ bench build
yarn run v1.17.3
$ FRAPPE_ENV=production node rollup/build.js
Production mode
:heavy_check_mark: Built js/moment-bundle.min.js
:heavy_check_mark: Built js/libs.min.js

Building frappe assets…

:heavy_check_mark: Built js/modules.min.js
:heavy_check_mark: Built js/dialog.min.js
:heavy_check_mark: Built js/social.min.js
:heavy_check_mark: Built js/web_form.min.js
:heavy_check_mark: Built css/printview.css
:heavy_check_mark: Built css/frappe-rtl.css
:heavy_check_mark: Built js/chat.js
:heavy_check_mark: Built js/list.min.js
:heavy_check_mark: Built css/module.min.css
:heavy_check_mark: Built css/form.min.css
:heavy_check_mark: Built css/list.min.css
:heavy_check_mark: Built css/report.min.css
:heavy_check_mark: Built frappe/css/email.css
error Command failed with signal “SIGKILL”.
info Visit yarn run | Yarn for documentation about this command.

Mine does not push thru after

Building frappe assets…

Are you upgrading from V11?

@chrismberi

Currently, I am facing same issue while creating new site and perform “bench build” command.

Error:
info Visit yarn run | Yarn for documentation about this command.

A little background could help. Is this a new installation or an upgrade, further, what operating system are you running. Mine is an upgrade from V11 and running on centos7

Also happen to me.
Bench build stops at middle of Building frappe assets...

Frappe 12.9.1

Everytime I bench build always stop at frappe with this error:

Building frappe assets...

error Command failed with signal "SIGKILL".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It doesn’t happen with other app if I do bench build --app appname

You might be running out of memory.

Can you see memory utilization when running bench build.

If this is the problem then it doesn’t happen with other apps because they probably don’t have enough assets to cause this.