1

错误:在此处编写 EPIPEenter 代码

at afterWriteDispatched (internal/stream_base_commons.js:154:25)
at writeGeneric (internal/stream_base_commons.js:145:3)
at Socket._writeGeneric (net.js:784:11)
at Socket._write (net.js:796:8)
at doWrite (_stream_writable.js:403:12)
at writeOrBuffer (_stream_writable.js:387:5)
at Socket.Writable.write (_stream_writable.js:318:11)
at PDF.PdfExec [as exec] (/data/www/apps/apirest_archivoRegional/node_modules/html-pdf/lib/pdf.js:141:15)
at PDF.PdfToBuffer [as toBuffer] (/data/www/apps/apirest_archivoRegional/node_modules/html-pdf/lib/pdf.js:44:8)
at /data/www/apps/apirest_archivoRegional/controllers/archivCentralController.js:311:30
at /data/www/apps/apirest_archivoRegional/node_modules/mongoose/lib/model.js:4826:16
at /data/www/apps/apirest_archivoRegional/node_modules/mongoose/lib/model.js:4826:16
at /data/www/apps/apirest_archivoRegional/node_modules/mongoose/lib/helpers/promiseOrCallback.js:24:16
at /data/www/apps/apirest_archivoRegional/node_modules/mongoose/lib/model.js:4849:21
at /data/www/apps/apirest_archivoRegional/node_modules/mongoose/lib/query.js:4390:11
at /data/www/apps/apirest_archivoRegional/node_modules/kareem/index.js:135:16
at processTicksAndRejections (internal/process/task_queues.js:79:11) {

错误号:'EPIPE',代码:'EPIPE',系统调用:'写'}

4

2 回答 2

2

你必须安装libfontconfig包。

sudo apt-get install libfontconfig

于 2020-08-11T07:02:50.797 回答
2

if you are using Alpine Linux, the problem is different and the solution could be found at https://gist.github.com/vovimayhem/6437c2f03b654e392ccf3e9903eba6af

Depending on the version of Alpine you are using, a different solution should be used. Read through the entire discussion to find the one that suits you best.

于 2020-12-21T18:12:47.867 回答