写入EPIPE致命错误
我是新来的nodejs,我遵循指南的源: – https://github.com/devongovett/node-wkhtmltopdf
我不断收到Fatal error: write EPIPE
每当我跑咕噜时Fatal error: write EPIPE
。 任何想法为什么?
var file_output = 'output.pdf'; console.log("Warming up"); var wkhtmltopdf = require('wkhtmltopdf'); console.log("wkhtmltopdf started"); wkhtmltopdf('<h1>Hello!</h1>',{ pageSize: 'letter' }, function (err, stream) { if (err) { console.log('wkhtmltopdf error : ', err); } else { console.log("Converting!!"); var createstream = stream.pipe(fs.createWriteStream(file_output)); console.log('Done!'); });