Rin icon indicating copy to clipboard operation
Rin copied to clipboard

[Bug] github SEO WorkFlow Build Error

Open Jackchen0514 opened this issue 1 year ago • 2 comments

Bug 描述 Blocked 10 postinstalls. Run bun pm untrusted for details. 260 | if (this.puppeteer.configuration.browserRevision) { 261 | throw new Error(Tried to find the browser at the configured path (${executablePath}) for revision ${this.puppeteer.browserRevision}, but no executable was found.); 262 | } 263 | switch (this.product) { 264 | case 'chrome': 265 | throw new Error(Could not find Chrome (ver. ${this.puppeteer.browserRevision}). This can occur if either\n + ^ error: Could not find Chrome (ver. 127.0.6533.88). This can occur if either

  1. you did not perform an installation before running the script (e.g. npx puppeteer browsers install chrome) or
  2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. at resolveExecutablePath (/home/runner/work/Rin/Rin/Rin/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:265:27) at /home/runner/work/Rin/Rin/Rin/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js:83:37

Jackchen0514 avatar Oct 16 '24 06:10 Jackchen0514

SEO 可以暂时禁用了,目前其实际作用并不大

OXeu avatar Oct 16 '24 16:10 OXeu

Bug 描述 Blocked 10 postinstalls. Run bun pm untrusted for details. 260 | if (this.puppeteer.configuration.browserRevision) { 261 | throw new Error(Tried to find the browser at the configured path (${executablePath}) for revision ${this.puppeteer.browserRevision}, but no executable was found.); 262 | } 263 | switch (this.product) { 264 | case 'chrome': 265 | throw new Error(Could not find Chrome (ver. ${this.puppeteer.browserRevision}). This can occur if either\n + ^ error: Could not find Chrome (ver. 127.0.6533.88). This can occur if either

  1. you did not perform an installation before running the script (e.g. npx puppeteer browsers install chrome) or
  2. your cache path is incorrectly configured (which is: /home/runner/.cache/puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. at resolveExecutablePath (/home/runner/work/Rin/Rin/Rin/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:265:27) at /home/runner/work/Rin/Rin/Rin/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js:83:37

Set up Puppeteer中的 npx puppeteer browsers install chrome 放到Run script中

run: |
  cd Rin/
  bun install --frozen-lockfile
  npx puppeteer browsers install chrome
  bun scripts/render.ts

iam2r avatar Nov 06 '24 15:11 iam2r