Skip to content

Puppeteer问题 #383

Answered by Tsuk1ko
A2Sumie asked this question in 问题求助
Dec 17, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

感觉是 puppeteer 没有提供 arm 的 chromium

puppeteer/puppeteer#7740

可能有一个方法是你自行安装 chromium,然后修改这里的 executablePath 提供可执行文件的路径,如果可行的话我可以增加一个自定义 executablePath 的配置

this.browser = await puppeteer.launch({
args: ['--no-sandbox'],
headless: true,
executablePath: executablePath(),
});

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@A2Sumie
Comment options

@Tsuk1ko
Comment options

@A2Sumie
Comment options

Answer selected by A2Sumie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants