Closed jdevsean closed 7 years ago
hi! can you upload the full log? you should have a npm-debug.log
file in your current working directory with all the logs. also, what OS are you using (linux, windows, osx)?
other question, how are you using jsreport-phantom-pdf
? are you installing it manually? just note that if you are using the jsreport
package, jsreport-phantom-pdf is installed by default.
ok,i use linux OS , i find it that the jsreport-pantom-pdf is already intsll by default . thank, the log is that
thanks!
hmm unfortunately the logs doesn't have any useful information.. can you try to run node server.js
and show me what you get in the console?
ok !
my template just a very simple template , no script ,no data
same error with node server
, right? hmm could it be a permission issue in linux? i see that you are using /root
as your project directory maybe you can try to move the project to another location, probably your home directory and see if you have the same error there.
unfortunately , the error still exit , i think that maybe the npm has some problem .
add : in the linux OS , i have root permission , because i run in the vmvare
ok, just note that when using phantomjs
on linux you need to install some additionally packages, see this instructions -> https://gist.github.com/julionc/7476620
try to run this:
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
sudo apt-get install libfreetype6 libfreetype6-dev
sudo apt-get install libfontconfig1 libfontconfig1-dev
ok , i will try , but i maybe tell you the result in tommorow , because now is 2.25 in china . thanks for your help!
my OS is centOS , some soft install failed;
oh sorry for didn't ask your linux distribution first.. try this: sudo yum install freetype fontconfig
hi sir , i run it , the result is already is latest version;
to confirm.. does it work now? can you render pdf without problems?
unfortunately , the issue still exit , if i render pdf by wkhtmlpdf , it without any problems.
i remenber that when i install jsreport by command line , stay for a while in the receiving state(the console show "Receiving...") , so i finish it , and install try again,it finish install quickly ,and can work still now , i know there is loss a zip file in my inpression .
hmm ok, you can try reinstalling and if it doesn't work.. can you start jsreport with node server.js
, start pdf rendering and send me the result of your console? if there is an error you will have more details now because you won't be using npm start
ah yes, make sure that when installing you have the appropriate permissions because the decompression of the phantomjs zip file can fail because of that, and just for test you can try installing with sudo npm install
just to see if there is some kind of permission issue
ok ! i will try to reinstalling again , and will note the situation from install to start , if the error still happen , i will give you more detail ! thanks~~
ok, thnks, just a note, i made a mistake the command should be sudo npm install jsreport
hi sir , i already install phantom-pdf . when i create a simple template ,engine is handlebars and recipe is phantom-pdf , is failed . the console's err message is and then , i input npm bugs jsreport-server ,the err is 'jsreport-server' is not in the npm registry. please . thanks!