我在构建后端 docker(特别是安装 Puppeteer)时遇到错误。我使用的是 M1 MacBook,我在本地计算机上找到了解决方案(https://github.com/puppeteer/puppeteer/issues/6622),但这在 docker 上不起作用。有人在 docker 上遇到过同样的 Puppeteer 问题吗?
#12 15.58 npm ERR! code 1
#12 15.58 npm ERR! path /app/node_modules/puppeteer
#12 15.58 npm ERR! command failed
#12 15.58 npm ERR! command sh -c node install.js
#12 15.58 npm ERR! The chromium binary is not available for arm64.
#12 15.58 npm ERR! If you are on Ubuntu, you can install with:
#12 15.58 npm ERR!
#12 15.58 npm ERR! sudo apt install chromium
#12 15.58 npm …Run Code Online (Sandbox Code Playgroud)