0%

宝塔安装puppeteer

centos8使用yum失败,切换镜像源,更改镜像源文件,尝试清除缓存并重新建立

1
2
3
4
5
6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

sudo yum clean all

sudo yum makecache

Centos8已不维护,只能找

puppeteer报错下载依赖 参考链接:https://www.cnblogs.com/ilizhu/p/14504049.html
报错sandbox:

1
2
#添加启动参数
const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
-------------本文结束感谢您的阅读-------------