puppeteer使用报错,
代码如下: 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 回复
ENOENT = Error No Entry 。。。 google 下不就知道了,找不到你指定的文件