我一直在尝试编写几个月前编写的代码,但遇到了以下错误,
> puppeteer@5.5.0 install /Users/xyz/Documents/xyz.github.io/node_modules/puppeteer
> node install.js
The chromium binary is not available for arm64:
If you are on Ubuntu, you can install with:
apt-get install chromium-browser
/Users/xyz/Documents/xyz.github.io/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112
throw new Error();
Error
at /Users/xyz/Documents/xyz.github.io/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112:19
at FSReqCallback.oncomplete (node:fs:194:21)
由于某种原因 puppeteer 似乎无法识别 Chromium arm64。上述任何解决方法?
我尝试过的解决方案: