returns SIGSEGV 错误 html-pdf npm

Node returns SIGSEGV error with html-pdf npm

var fs = require('fs');
var pdf = require('html-pdf');
var html = '<html><body><div>hi testing</div></body></html>'
var options = { format: 'Letter' };

pdf.create(html, options).toFile('./businesscard.pdf', function(err, res) {
  if (err) return console.log(err);
  console.log(res);
});

我正在使用此代码使用 html-pdf 将 html 转换为 pdf。但我不断收到同样的错误

SIGSEGV

我一直在使用相同的代码。但是从最近几天开始,我突然开始遇到这个错误。

Node - v8.6.2
Npm - v6.4.1
html-pdf - v2.2.0

SIGSEGV 是由无效内存引用或分段错误引起的错误(信号)。
segfault-handler 在非 Windows 平台上捕获段错误并生成堆栈跟踪的模块。