Yes i checked those dependencies. Actually all dependencies were satisfied. So i installed node-gyp in a new location and it worked. Installation was successfull. But there was a major issue that i reported in the package's github repo. Link: "https://github.com/jsreport/jsreport-pdf-password/issues/5"
Posts made by vishesh1king
-
RE: Unable to install
-
RE: Unable to generate report using phantom receipe?
Thanks, Yes i am unable to install. I posted another issue that is same as this this is the link. https://forum.jsreport.net/topic/979/unable-to-install/3
-
RE: Unable to install
Thanks, i did change my node version to 8.9.1 and ran the instalation and it works. For some reason only this package "jsreport-pdf-password" is installing the hummus package and it always return the error in above screen shoot. I am fedup with it. I used it for setting password for the pdf that is generated using jsreport like below example code.
template: { engine: 'handlebars', recipe: 'phantom-pdf', pdfPassword: { active: true, password: 'pdfPassword'//finaldata.personal_details.name.trim().slice(0,3) }, }, data:data })``` Incase this package has some dependency issues. Can you suggest a better way to add password for the pdf report? I am using phantom with handlebars for generating the report.
-
Unable to generate report using phantom receipe?
I always get below error in my logger and the pdf redering stops in console.
error: uncaughtException: "file" argument must be a non-empty string
date=Tue Apr 02 2019 09:47:09 GMT+0530 (IST), pid=6817, uid=1000, gid=1000, cwd=/home/vishesh/crossbow, execPath=/home/vishesh/.nvm/versions/node/v8.9.1/bin/node, version=v8.9.1, argv=[/home/vishesh/.nvm/versions/node/v8.9.1/bin/node, /home/vishesh/crossbow/bin/www], rss=176029696, heapTotal=134475776, heapUsed=117502392, external=7172092, loadavg=[1.46044921875, 0.89208984375, 1.3212890625], uptime=2638, trace=[column=11, file=child_process.js, function=normalizeSpawnArguments, line=383, method=null, native=false, column=38, file=child_process.js, function=exports.spawn, line=496, method=spawn, native=false, column=15,
file=child_process.js, function=Object.exports.execFile, line=212, method=execFile, native=false, column=34,
file=/home/vishesh/crossbow/node_modules/jsreport-phantom-pdf/node_modules/phantom-html-to-pdf/lib/dedicatedProcessStrategy.js, function=null, line=47, method=null, native=false, column=10,
file=/home/vishesh/crossbow/node_modules/graceful-fs/graceful-fs.js, function=null, line=45, method=null, native=false, column=15, file=fs.js, function=FSReqWrap.oncomplete, line=135, method=oncomplete, native=false], stack=[TypeError: "file" argument must be a non-empty string, at normalizeSpawnArguments (child_process.js:383:11), at exports.spawn (child_process.js:496:38), at Object.exports.execFile (child_process.js:212:15), at /home/vishesh/crossbow/node_modules/jsreport-phantom-pdf/node_modules/phantom-html-to-pdf/lib/dedicatedProcessStrategy.js:47:34, at /home/vishesh/crossbow/node_modules/graceful-fs/graceful-fs.js:45:10, at FSReqWrap.oncomplete (fs.js:135:15)] -
Unable to install
I am getting above error and am unable to install the package. My node version is 7.10.1.