CNode

puppeteer使用报错,

问答
Qquanpf2481发布于8 年前最后回复8 年前1 回复3082 浏览0 收藏

代码如下: const puppeteer = require('puppeteer'); console.log('111'); let browser = puppeteer.launch({ executablePath: './local-chromium/linux-588429/chrome-linux/chrome.exe', headless: false });

结果运行报错,如下: 111 (node:14924) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to launch chrome! spawn ./local-chromium/linux-588429/chrome-linux/chrome.exe ENOENT

查看回复

回复 (1)

A
atian25#1·8 年前

ENOENT = Error No Entry 。。。 google 下不就知道了,找不到你指定的文件

参与回复
登录后即可参与回复。登录