บทความ

กำลังแสดงโพสต์จาก ตุลาคม, 2021

"html-pdf: Failed to load PhantomJS module.

รูปภาพ
วิธีแก้ไขเอาขึ้น server linux แล้ว "error  phantomjs-prebuilt" 1. ลบ lib:  phantomjs-prebuilt ด้วยคำสั่ง   rm -rf node_modules/phantomjs-prebuilt 2.ติดตั้งใหม่ ด้วยคำสั่ง  npm install phantomjs-prebuilt --------------------------------------------- ref: https://github.com/marcbachmann/node-html-pdf/issues/437 ref: https://github.com/marcbachmann/node-html-pdf/issues/212 ref: https://www.javascripttutorial.net/nodejs-tutorial/npm-list/   Copy link ganeshmogare commented on Jun 4, 2018 hi ,i'm trying to use html-pdf module , but it throws "html-pdf: Failed to load PhantomJS module. You have to set the path to the PhantomJS binary using 'options.phantomPath" error , steps i tried to resolve : 1. ...