prerender-spa-plugin在centos 上打包时依赖 Chrome

848 阅读1分钟

先在centos 上安装 Chrome,一次性解决各种依赖缺失问题

wget dl.google.com/linux/direc…

sudo yum localinstall google-chrome-stable_current_x86_64.rpm

诸如

node_modules/_puppeteer@1.20.0@puppeteer/.local-chromium/linux-686378/chrome-linux/chrome: error while loading shared libraries: libatk-bridge-2.0.so.0: cannot open shared object file: No such file or directory

之类