Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] github SEO WorkFlow Build Error #275

Open
Jackchen0514 opened this issue Oct 16, 2024 · 2 comments
Open

[Bug] github SEO WorkFlow Build Error #275

Jackchen0514 opened this issue Oct 16, 2024 · 2 comments

Comments

@Jackchen0514
Copy link

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
@OXeu
Copy link
Collaborator

OXeu commented Oct 16, 2024

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

@iam2r
Copy link

iam2r commented Nov 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants