marp-team / marp-cli

A CLI interface for Marp and Marpit based converters
MIT License
1.9k stars 108 forks source link

PDFs don't compile in zenika Docker #611

Open pdessus opened 1 week ago

pdessus commented 1 week ago

We use a docker zenika/alpine-chrome:with-node to compile slides with Marp (URL: https://gricad-gitlab.univ-grenoble-alpes.fr/inspe-sciedu/slides). We got this error message below; thx for fixing this! best, phd node:events:497 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:218:20) Emitted 'error' event on Socket instance at: at emitErrorNT (node:internal/streams/destroy:169:8) at emitErrorCloseNT (node:internal/streams/destroy:128:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -104, code: 'ECONNRESET', syscall: 'read' } Node.js v20.15.1

yhatt commented 1 week ago

It seems that you are trying to use the prior major version of Marp CLI v3.4.0. The latest Chromium may be incompatible with old CLI versions due to the migration into the new headless mode. Try the latest CLI version v4.0.0.