prerender-spa-plugin linux運行報錯問題

使用prerender-spa-plugin進行react預渲染時,本地開發打包沒問題,但在服務器上部署是,出現Error: Failed to launch chrome!

https://raw.githubusercontent.com/abelce/staticResource/master/images/WX20190416-115551%402x.png

在服務器上分別執行下面兩行命令即可

yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 -y
yum install ipa-gothic-fonts xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc -y
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章