centos nodejs调用puppeteer报错libatk-1.0.so.0
/xxxxx/node_modules/_puppeteer@5.5.0@puppeteer/.local-chromium/linux-818858/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or
·
/xxxxx/node_modules/_puppeteer@5.5.0@puppeteer/.local-chromium/linux-818858/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
解决方法,cd 到项目node_modules/_puppeteer@5.5.0@puppeteer然后执行 npm install即可
路径可能不一样,具体看报错信息
中文乱码解决方法:
yum groupinstall "X Window System" -y
yum -y groupinstall chinese-support
yum -y groupinstall Fonts
提示.git找不到解决方法,在puppeteer跟node_modules同级别下手动创建.git文件夹
更多推荐
已为社区贡献1条内容
所有评论(0)