From edab60d463d05cc29100645a79bc05c6903d0bda Mon Sep 17 00:00:00 2001 From: Jens Doose Date: Thu, 20 Feb 2020 08:51:46 +0100 Subject: [PATCH] Update README.md Added hint for the need to call `npm rebuild` for Cross-Platform Repositories --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9421b66..385c632 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ Install the html-pdf utility via [npm](http://npmjs.org/): $ npm install -g html-pdf ``` +NOTE: The [PhantomJS Homepage](https://github.com/Medium/phantomjs) states, that if you check your dependencies into a repository then an `npm rebuild` is needed to rebuild any platform-specific dependencies, which is required for PhantomJS. Otherwise an error is omitted: `Failed to load PhantomJS module. You have to set the path to the PhantomJS binary using 'options.phantomPath'` + ## Command-line example ```