小编Dea*_*ean的帖子

M1芯片,在Docker NodeJs中安装Puppeteer,chromium二进制文件不适用于arm64

我在构建后端 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)

node.js docker docker-compose puppeteer apple-m1

11
推荐指数
2
解决办法
9549
查看次数

标签 统计

apple-m1 ×1

docker ×1

docker-compose ×1

node.js ×1

puppeteer ×1