iamdual / html2pdf

🔄 Self-hosted HTML to PDF converter API.
Apache License 2.0
5 stars 3 forks source link

arm64 报错 #2

Open lscool66 opened 1 month ago

lscool66 commented 1 month ago

run in docker

root@html2pdf-v1-5f86f486df-7d6sp:/app# html2pdf '<!DOCTYPE html><strong>Hello world!</strong>' -o output.pdf
/app/node_modules/@puppeteer/browsers/lib/cjs/launch.js:310
                reject(new Error([
                       ^

Error: Failed to launch the browser process!

TROUBLESHOOTING: https://pptr.dev/troubleshooting

    at Interface.onClose (/app/node_modules/@puppeteer/browsers/lib/cjs/launch.js:310:24)
    at Interface.emit (node:events:532:35)
    at Interface.close (node:internal/readline/interface:527:10)
    at Socket.onend (node:internal/readline/interface:253:10)
    at Socket.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v22.5.1
iamdual commented 1 month ago

Sorry, arm64 is not supported on Puppeteer yet. See https://github.com/puppeteer/puppeteer/issues/7740