puppeteer插件报错

2025-06-29 16:31:33 [E] app Error: no chrome installations found
                            at Object.<anonymous> (/root/koishi-app/node_modules/puppeteer-finder/lib/index.js:9:38)
                            at Module._compile (node:internal/modules/cjs/loader:1730:14)
                            at Object..js (node:internal/modules/cjs/loader:1895:10)
                            at Module.load (node:internal/modules/cjs/loader:1465:32)
                            at Function._load (node:internal/modules/cjs/loader:1282:12)
                            at TracingChannel.traceSync (node:diagnostics_channel:322:14)
                            at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
                            at Module.require (node:internal/modules/cjs/loader:1487:12)
                            at require (node:internal/modules/helpers:135:16)
                            at Object.<anonymous> (/root/koishi-app/node_modules/koishi-plugin-puppeteer/lib/index.js:39:39)
2025-06-29 16:38:42 [E] app Error: no chrome installations found
                            at Object.<anonymous> (/root/koishi-app/node_modules/puppeteer-finder/lib/index.js:9:38)
                            at Module._compile (node:internal/modules/cjs/loader:1730:14)
                            at Object..js (node:internal/modules/cjs/loader:1895:10)
                            at Module.load (node:internal/modules/cjs/loader:1465:32)
                            at Function._load (node:internal/modules/cjs/loader:1282:12)
                            at TracingChannel.traceSync (node:diagnostics_channel:322:14)
                            at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
                            at Module.require (node:internal/modules/cjs/loader:1487:12)
                            at require (node:internal/modules/helpers:135:16)
                            at Object.<anonymous> (/root/koishi-app/node_modules/koishi-plugin-puppeteer/lib/index.js:39:39)

2 个赞

已解决,原因是系统不自带chromium
输入以下命令即可解决

sudo apt install chromium
2 个赞