我尝试使用 puppeteer 启动 chrome,但它给了我这个错误
错误:无法启动浏览器进程!产卵 //C://Program Files (x86)//Google//Chrome//Application ENOENT
这是我使用的代码
const puppeteer = require('puppeteer')
const browser = await puppeteer.launch( { headless: false,
executablePath: '//C://Program Files (x86)//Google//Chrome//Application' })
Run Code Online (Sandbox Code Playgroud)
那么如何使用 puppeteer 启动 chrome?
正如标题所说,我需要在 Windows 10 中使用 cmd 在一行中运行两个命令。这怎么可能?