Node.js 如何在CentOS 6上安装libatk-bridge-2.0.so.0
在推出木偶演员时,我遇到了一个问题Node.js 如何在CentOS 6上安装libatk-bridge-2.0.so.0,node.js,node-modules,puppeteer,centos6,Node.js,Node Modules,Puppeteer,Centos6,在推出木偶演员时,我遇到了一个问题 (node:13392) UnhandledPromiseRejectionWarning: Error: Failed to launch chrome! /var/www/html/node_modules/puppeteer/.local-chromium/linux-674921/chrome-linux/chrome: error while loading shared libraries: libatk-bridge-2.0.so
(node:13392) UnhandledPromiseRejectionWarning: Error: Failed to launch chrome!
/var/www/html/node_modules/puppeteer/.local-chromium/linux-674921/chrome-linux/chrome: error while loading shared libraries: libatk-bridge-2.0.so.0: cannot open shared object file: No such file or directory
我找到并选择了,因为没有CentOS 6
根据我打的
yum install at-spi2-atk
但是得到
Loaded plugins: fastestmirror
Setting up Install Process
Repository remi-php71 is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* atomic: www6.atomicorp.com
* base: mirror.checkdomain.de
* epel: mirror.wiuwiu.de
* extras: mirror.checkdomain.de
* remi: mirror.23media.com
* remi-php54: mirror.23media.com
* remi-php71: mirror.23media.com
* remi-safe: mirror.23media.com
* updates: mirror.imt-systems.com
* webtatic: uk.repo.webtatic.com
No package at-spi2-atk available.
Error: Nothing to do
顺便说一句,在Windows7中,Puppeter可以处理任何问题
背景
CentOS 6,节点v10.16.1
代码
const puppeter=require('puppeter');
常量url=https://thepage.com.ua/';
木偶演员
.launch(函数(){
console.log('puppeter启动')
})
.then(功能(浏览器){
console.log('浏览器正常')
返回browser.newPage();
})
最后,我使用请求承诺模块。您是否解决了此问题?我现在也有同样的问题。CentOS 6不支持Chromium,我还没有更新系统