Build:production gives error code 2

sage9

#1

Hi,

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.


#2

Try adding this: https://github.com/roots/sage/pull/1961 Some errors don’t bubble up, which means it just fails on a linting error but doesn’t tell you that.


#3

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

Thanks!