yarn run build:prod ----fails

894 views
Skip to first unread message

BRYAN SEBASTIAN TENEMEA QUEZADA

unread,
Aug 25, 2022, 7:12:54 AM8/25/22
to DSpace Technical Support
10% building 7/11 modules 4 active ...les/sass-loader/dist/cjs.js??ref--19-1!/home/dspace/dspace-angular-dspace-7.2/src/themes/dspace/styles/theme.scssKilled
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Tim Donohue

unread,
Aug 29, 2022, 11:22:02 AM8/29/22
to DSpace Technical Support
Hi,

If you search on that error from yarn ("yarn error code 137"), you'll find that it means your build process ran out of memory, e.g. https://jcutrer.com/javascript/yarn-build-exit-code-137

You need to make sure your machine ideally has at least 4GB of memory available.  You might be able to build the UI with 2GB, but even that would be pushing it.  We have some DSpace 7 memory recommendations here: https://wiki.lyrasis.org/display/DSDOC7x/Performance+Tuning+DSpace

If you need more help, let us know on this list.

Tim

Reply all
Reply to author
Forward
0 new messages