Since the latest release of node:8 our Gitlab CI builds have been failing due to a libpng error that is thrown for every .jpg image:
ERROR in ./app/domains/<.../image filename>.jpg
Module build failed: Error: /builds/<path>/node_modules/mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
at Promise.all.then.arr (/builds/<path>/node_modules/execa/index.js:201:11)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
@ ./app/domains/App/index.js 50:0-50
@ ./app/app.js
@ multi ./app/app.js
I read in #940 that stretch is now the default instead of jessie, which seems like it might be the cause.
Is there something that should be installed manually to fix this or is it unintended behavior?
Try switching to node:8-jessie. Looks like one of the dependencies requires the older libpng12.so.0 which is not available in stretch.
Most helpful comment
Try switching to
node:8-jessie. Looks like one of the dependencies requires the olderlibpng12.so.0which is not available in stretch.