puppeteer的demo启动失败。。Failed to launch the browser[阿里云Serverless]

puppeteer的demo启动失败。。

Failed to launch the browser process! /code/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28′ not found (required by /code/.s/root/usr/lib/x86_64-linux-gnu/libgbm.so.1)

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
=====这是一个广告位,招租中,联系qq 78315851====
1 条回复 A 作者 M 管理员
  1. 这个错误提示是因为系统缺少GLIBC_2.28库,可以尝试升级系统或者安装该库。如果无法升级系统或者安装该库,可以考虑使用Docker等容器技术来运行Puppeteer,以避免依赖库的问题。另外,也可以尝试使用其他版本的Chromium浏览器,例如使用Puppeteer的executablePath选项来指定本地安装的Chromium浏览器路径。

  2. 使用这个模版呢: s init start-puppeteer

    此答案来自钉钉群“Serverless 开发者技术学习群”