Skip to content

playwright浏览器装不了 #5

Description

@ZDS36

headless 也改成true了

PS D:\code\grabber> node grab.js
[2026/9/8 18:30:41] == 需要登录 ==
[2026/9/8 18:30:41] 即将弹出浏览器打开选课页。
[2026/9/8 18:30:41] 未配置账号(config.json 的 login),请手动登录。
[2026/9/8 18:30:41] 若登录页有验证码,请在浏览器里补上并点登录。
[2026/9/8 18:30:41] 登录后页面会自动发初始化请求,脚本在后台采集请求参数。
[2026/9/8 18:30:41] 检测到模板就绪后,本工具自动进入抢课循环。
[2026/9/8 18:30:41] 致命错误: browserType.launch: Executable doesn't exist at C:\Users\Administrator\AppData\Local\ms-playwright\chromium_headless_shell-1234\chrome-headless-shell-win64\chrome-headless-shell.exe
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ npx playwright install ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝
[2026/9/8 18:30:41] browserType.launch: Executable doesn't exist at C:\Users\Administrator\AppData\Local\ms-playwright\chromium_headless_shell-1234\chrome-headless-shell-win64\chrome-headless-shell.exe | ╔════════════════════════════════════════════════════════════╗ | ║ Looks like Playwright was just installed or updated. ║
PS D:\code\grabber> npx playwright install
'"node"' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
PS D:\code\grabber>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions