standalone jsreport install fails with message Failed @ Phatomjs@1.9.15 error code ELIFECYCLE

376 views
Skip to first unread message

prab...@gmail.com

unread,
Nov 22, 2016, 8:08:29 AM11/22/16
to jsreport
Hi Blaha,
 I tried to install standalone jsreport based on your comment on JSreport.net portal (http://jsreport.net/learn/net-embedded). However I get the below error. Could you please help?

65698 error Windows_NT 6.1.7601
65699 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "jsreport" "--production"
65700 error node v6.9.1
65701 error npm  v3.10.8
65702 error code ELIFECYCLE
65703 error phan...@1.9.15 install: `node install.js`
65703 error Exit status 1
65704 error Failed at the phan...@1.9.15 install script 'node install.js'.
65704 error Make sure you have the latest version of node.js and npm installed.
65704 error If you do, this is most likely a problem with the phantomjs package,
65704 error not with npm itself.
65704 error Tell the author that this fails on your system:
65704 error     node install.js
65704 error You can get information on how to open an issue for this project with:
65704 error     npm bugs phantomjs
65704 error Or if that isn't available, you can get their info via:
65704 error     npm owner ls phantomjs
65704 error There is likely additional logging output above.
65705 verbose exit [ 1, true ]

Jan Blaha

unread,
Nov 22, 2016, 8:12:04 AM11/22/16
to jsreport, prab...@gmail.com
phantomjs installation is not very reliable and sometimes fail. Please retry.

prab...@gmail.com

unread,
Nov 22, 2016, 8:43:38 AM11/22/16
to jsreport, prab...@gmail.com
Hi Blaha,
 Thanks for the quick reply. I was able to install the standalone instance in my system successfully(you have advised me to try this first) . However I am actually trying to install the jsreport.Embedded in Visual studio 2013 but it fails with following error still. I am able to install node.js, nogit & Jsreport.client but not NPM. Following error occurs when I try to install jsreport.Embedded in VS2013. Please help


install-package : Could not find a part of the path 'C:\Users\xxxx\AppData\Local\Temp\NuGetScratch\e97627ec-b9b7-4de7-9dc2-c9c43bac2e00\4tfsh0nk.yqd\node_modules\npm\node_modul
es\fstream-npm\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules\balanced-match\.npmignore'.
At line:1 char:1
+ install-package npm -verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], DirectoryNotFoundException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Jan Blaha

unread,
Nov 22, 2016, 8:47:35 AM11/22/16
to jsreport, prab...@gmail.com
Ok, so you say that you cannot install mentioned NPM nuget, package right?

Jan Blaha

unread,
Nov 22, 2016, 8:48:34 AM11/22/16
to jsreport, prab...@gmail.com
Maybe you can try to remove that temp NuGetScratch folder and also make sure you start VS as admin.

prab...@gmail.com

unread,
Nov 22, 2016, 9:11:06 AM11/22/16
to jsreport, prab...@gmail.com
Hi Blaha,
Sorry No luck. I deleted the NugetScratch folder & tried installing NPM as Admin I still get the below error . I tried navigating the path it mentions . I am able to traverse till

C:\Users\*****\AppData\Local\Temp\NuGetScratch\2635c0cb-db6a-4ece-a7a7-da86262056ed\dszhxfhj.lrj\node_modules\npm\node_modules\fstream-npm\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules\

however there is no balanced-match folder there. Instead there is only one foder named - concat-map . Does this help you to resolve this issue?

Installing 'Npm 3.5.2'.
Install failed. Rolling back...
install-package : Could not find a part of the path 'C:\Users\xxxx\AppData\Local\Temp\NuGetScratch\2635c0cb-db6a-4ece-a7a7-da86262056ed\dszhxfhj.lrj\node_modules\npm\node_modul

es\fstream-npm\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules\balanced-match\.npmignore'.
At line:1 char:1
+ install-package npm
+ ~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Install-Package], DirectoryNotFoundException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

On Tuesday, 22 November 2016 19:18:34 UTC+5:30, Jan Blaha wrote:

Jan Blaha

unread,
Nov 22, 2016, 9:20:40 AM11/22/16
to jsreport, prab...@gmail.com
Unfortunately I'm not the maintainer of NPM nuget package and I've no clue what is wrong there.

Maybe you can try to download and install that nuget package manually

prab...@gmail.com

unread,
Nov 22, 2016, 9:27:54 AM11/22/16
to jsreport, prab...@gmail.com
Thanks Blaha. I will try to install the package manually.

I tried to launch the sample report in Stand alone instance I get the following error. Would you be able to help me resolve this please? Have pasted the entry from log file.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using n...@3.10.8
3 info using no...@v6.9.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle jsreport-server@~prestart: jsreport-server@
6 silly lifecycle jsreport-server@~prestart: no script for prestart, continuing
7 info lifecycle jsreport-server@~start: jsreport-server@
8 verbose lifecycle jsreport-server@~start: unsafe-perm in lifecycle true
9 verbose lifecycle jsreport-server@~start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\xxxx\pdf\node_modules\.bin;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;S:\proddlls\pbnt;Z:.;Y:.;X:.;S:\proddlls\sql\bin;S:\proddlls\sql\dll;C:\Users\xxxx\AppData\Roaming\npm;.bin
10 verbose lifecycle jsreport-server@~start: CWD: C:\Users\xxxx\pdf
11 silly lifecycle jsreport-server@~start: Args: [ '/d /s /c', 'node server.js' ]
12 silly lifecycle jsreport-server@~start: Returned: code: 1  signal: null
13 info lifecycle jsreport-server@~start: Failed to exec start script
14 verbose stack Error: jsreport-server@ start: `node server.js`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:877:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid jsreport-server@
16 verbose cwd C:\Users\xxxx\pdf
17 error Windows_NT 6.1.7601
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
19 error node v6.9.1
20 error npm  v3.10.8
21 error code ELIFECYCLE
22 error jsreport-server@ start: `node server.js`
22 error Exit status 1
23 error Failed at the jsreport-server@ start script 'node server.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the jsreport-server package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     node server.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs jsreport-server
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls jsreport-server
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Jan Blaha

unread,
Nov 22, 2016, 9:32:04 AM11/22/16
to jsreport, prab...@gmail.com
I don't see there actual report, this outputs on npm start?
Try to run it rather using 'node server.js' this could provide better error

prab...@gmail.com

unread,
Nov 22, 2016, 9:56:18 AM11/22/16
to jsreport, prab...@gmail.com
Hi Blaha,
when I access the localhost URL I am able to see the sample report HTML & Other handle bar related code. However when I click Run button above I get page can not be displayed error in browser. here is what I found in logs\reporter.txt file  will you be able to help?


2016-11-22T14:47:08.542Z - info: jsreport server successfully started on http port: 5488
2016-11-22T14:47:08.553Z - warn: License not found, using free
2016-11-22T14:47:08.564Z - info: reporter initialized
2016-11-22T14:47:40.262Z - debug: OData query on templates
2016-11-22T14:47:40.273Z - debug: OData query on images
2016-11-22T14:47:40.302Z - debug: OData query on data
2016-11-22T14:47:40.328Z - debug: OData query on scripts
2016-11-22T14:47:40.353Z - debug: OData query on assets
2016-11-22T14:47:40.382Z - debug: OData query on xlsxTemplates
2016-11-22T14:47:40.866Z - debug: OData query on schedules
2016-11-22T14:47:40.880Z - debug: OData query on settings
2016-11-22T14:47:41.137Z - debug: OData query on templates
2016-11-22T14:47:41.305Z - debug: OData query on settings
2016-11-22T14:47:48.594Z - debug: OData query on templates
2016-11-22T14:47:48.677Z - debug: OData query on templates
2016-11-22T14:47:48.856Z - debug: OData query on settings
2016-11-22T14:48:15.221Z - info: Starting rendering request 1 (user: null) requestId=1
2016-11-22T14:48:15.228Z - info: Rendering template {shortid:rkZMOD6Wfl, recipe:phantom-pdf,engine:handlebars} requestId=1
2016-11-22T14:48:15.231Z - debug: Adding sample data HkGdDabGe requestId=1
2016-11-22T14:48:15.240Z - debug: Executing script HkgfuDabfx requestId=1
2016-11-22T14:48:15.245Z - debug: Replaced assets [] requestId=1
2016-11-22T14:48:15.507Z - debug: Replaced assets [] requestId=1
2016-11-22T14:48:15.508Z - debug: Replaced assets [] requestId=1
2016-11-22T14:48:15.509Z - debug: Resources not defined for this template. requestId=1
2016-11-22T14:48:15.512Z - debug: Rendering engine handlebars requestId=1
2016-11-22T14:48:15.947Z - debug: Compiled template not found in the cache, compiling timestamp=Tue Nov 22 2016 09:48:15 GMT-0500 (Eastern Standard Time), requestId=1
2016-11-22T14:48:15.950Z - debug: Replaced images [] requestId=1
2016-11-22T14:48:15.952Z - debug: Replaced assets [] requestId=1
2016-11-22T14:48:15.953Z - debug: Executing recipe phantom-pdf requestId=1
2016-11-22T14:48:15.954Z - debug: Starting child request to render pdf header requestId=1
2016-11-22T14:48:15.965Z - info: Starting rendering request 2 (user: null) requestId=2
2016-11-22T14:48:15.974Z - info: Rendering template {shortid:rkZMOD6Wfl, recipe:html,engine:handlebars} requestId=2
2016-11-22T14:48:15.975Z - debug: Inline data specified. requestId=2
2016-11-22T14:48:15.980Z - debug: Executing script HkgfuDabfx requestId=2
2016-11-22T14:48:15.981Z - debug: Replaced assets [] requestId=2
2016-11-22T14:48:16.236Z - debug: Replaced assets [] requestId=2
2016-11-22T14:48:16.237Z - debug: Replaced assets [] requestId=2
2016-11-22T14:48:16.237Z - debug: Resources not defined for this template. requestId=2
2016-11-22T14:48:16.239Z - debug: Rendering engine handlebars requestId=2
2016-11-22T14:48:16.647Z - debug: Compiled template not found in the cache, compiling timestamp=Tue Nov 22 2016 09:48:16 GMT-0500 (Eastern Standard Time), requestId=2
2016-11-22T14:48:16.649Z - debug: Replaced images [] requestId=2
2016-11-22T14:48:16.652Z - debug: Replaced assets [] requestId=2
2016-11-22T14:48:16.652Z - debug: Executing recipe html requestId=2
2016-11-22T14:48:16.661Z - debug: Skipping storing report. requestId=2
2016-11-22T14:48:16.954Z - info: Rendering request 2 finished in 990 ms requestId=2
2016-11-22T14:48:16.956Z - debug: Starting child request to render pdf footer requestId=1
2016-11-22T14:48:16.960Z - info: Starting rendering request 3 (user: null) requestId=3
2016-11-22T14:48:16.966Z - info: Rendering template {shortid:rkZMOD6Wfl, recipe:html,engine:handlebars} requestId=3
2016-11-22T14:48:16.967Z - debug: Inline data specified. requestId=3
2016-11-22T14:48:16.976Z - debug: Executing script HkgfuDabfx requestId=3
2016-11-22T14:48:16.977Z - debug: Replaced assets [] requestId=3
2016-11-22T14:48:17.228Z - debug: Replaced assets [] requestId=3
2016-11-22T14:48:17.230Z - debug: Replaced assets [] requestId=3
2016-11-22T14:48:17.231Z - debug: Resources not defined for this template. requestId=3
2016-11-22T14:48:17.234Z - debug: Rendering engine handlebars requestId=3
2016-11-22T14:48:17.687Z - debug: Compiled template not found in the cache, compiling timestamp=Tue Nov 22 2016 09:48:17 GMT-0500 (Eastern Standard Time), requestId=3
2016-11-22T14:48:17.689Z - debug: Replaced images [] requestId=3
2016-11-22T14:48:17.692Z - debug: Replaced assets [] requestId=3
2016-11-22T14:48:17.693Z - debug: Executing recipe html requestId=3
2016-11-22T14:48:17.703Z - debug: Skipping storing report. requestId=3
2016-11-22T14:48:17.993Z - info: Rendering request 3 finished in 1033 ms requestId=3

Jan Blaha

unread,
Nov 22, 2016, 9:57:46 AM11/22/16
to jsreport, prab...@gmail.com
Did you try chrome/firefox? Edge an IE doesn't have native support for pdf and you need to install a plugin

prab...@gmail.com

unread,
Nov 22, 2016, 10:15:57 AM11/22/16
to jsreport, prab...@gmail.com
Yes I tried with chrome latest version. It still fails. in fact the server stops accepting further requests after I try to run the report.  I had to run the command node server.js for it to display any output.

Jan Blaha

unread,
Nov 22, 2016, 10:21:59 AM11/22/16
to jsreport, prab...@gmail.com
That is strange. Are you able to reach me on skype @pofider and prepare TeamViewer session for me?

prab...@gmail.com

unread,
Nov 22, 2016, 11:02:22 AM11/22/16
to jsreport, prab...@gmail.com
I am in a corporate network. I will check the options to screenshare & come back to you.
Reply all
Reply to author
Forward
0 new messages