centos node.js安装puppeter遇到的一些错误
libatk-1.0.so.0
Failed to launch the browser process! /data/project/p_base/node_modules/puppeteer/.local-chromium/linux-1002410/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
解决方案:
yum install atk
libatk-bridge-2.0.so.0
yum install at-spi2-atk
libcups.so.2
yum install cups-libs
libxkbcommon.so.0
yum install libxkbcommon-x11-devel
libXcomposite.so.1
yum install libXcomposite
libXdamage.so.1
yum install libXdamage.x86_64
libXrandr.so.2
yum install libXrandr.x86_64
libgbm.so.1
yum install mesa-libgbm
libpango-1.0.so.0
yum install pango
链接:centos node.js安装puppeter遇到的一些错误_puppeteer 安装失败_weixin_44250886的博客-CSDN博客
centos安装google浏览器
1:wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
2:sudo yum localinstall google-chrome-stable_current_x86_64.rpm
3:如果您遇到依赖性错误,请运行以下命令以解决它们 sudo yum install -y libXScrnSaver
4:现在,您可以在终端中输入以下命令来启动Chrome浏览器:google-chrome-stable