Skip to content

尝试executablePath: /usr/bin/google-chrome, #2

尝试executablePath: /usr/bin/google-chrome,

尝试executablePath: /usr/bin/google-chrome, #2

Workflow file for this run

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # 或你需要的 Node.js 版本
- name: Install Chromium and Puppeteer
run: |
apt-get update
apt-get install -y chromium-browser
npm install puppeteer-core
env:
PUPPETEER_EXECUTABLE_PATH: /usr/bin/chromium-browser