Build:production gives error code 2


I’m on the Sage 9 beta 4 and when I run yarn build:production I get an error Command failed with exit code 2.
yarn build works just fine though.

Found this article where the solution was to install libpng, which I already have installed.

Try adding this: Some errors don’t bubble up, which means it just fails on a linting error but doesn’t tell you that.


So this actually gave me the correct lint error, which I corrected and build:production works like a charm now :slight_smile:


1 Like