可悲的是,我的伪娘无法在特定的机器上工作,而其他人只能使用相同的代码(请参见下文)。
有没有想找的东西或在哪里寻找?
到目前为止已尝试:
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)