木偶无法启动浏览器进程

时间:2020-03-19 09:39:46

标签: node.js puppeteer

可悲的是,我的伪娘无法在特定的机器上工作,而其他人只能使用相同的代码(请参见下文)。

有没有想找的东西或在哪里寻找?

到目前为止已尝试:

  • 重新安装
  • 无头真/假
  • ignoreDefaultArgs
  • 替换铬文件
      let browser;
      try {
        browser = await puppeteer.launch({
          headless: false,
          ignoreHTTPSErrors: true,
          ignoreDefaultArgs: ["--disable-extensions"],
          args: [
            "--ignore-certificate-errors",
            "--proxy-server='direct://'",
            "--proxy-bypass-list=*"
          ]
        });
      } catch (error) {       
        console.log(error);
      }

Error: Failed to launch the browser process!


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md

    at onClose (D:\nodeJS\ZDATA\backend\node_modules\puppeteer\lib\Launcher.js:750:14)
    at ChildProcess.helper.addEventListener (D:\nodeJS\ZDATA\backend\node_modules\puppeteer\lib\Launcher.js:740:61)
    at ChildProcess.emit (events.js:194:15)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

0 个答案:

没有答案