jsreport / jsreport-core

The minimalist jsreport rendering core
GNU Lesser General Public License v3.0
86 stars 24 forks source link

JSreport failed to start on CentOS 7.6 #46

Closed yami12376 closed 5 years ago

yami12376 commented 5 years ago

I am doing steps from: https://jsreport.net/learn/centos but i get an error:

jsreport start

An error has occurred when trying to initialize jsreport (2). Error when loading extension chrome-pdf Error: Cannot find module 'puppeteer'

Then again while trying additional step:

npm -v

5.6.0

npm install puppeteer jsreport-chrome-pdf

puppeteer@1.14.0 install /opt/jsreportapp/node_modules/puppeteer node install.js

sh: node: command not found npm WARN jsreport-server@ No description npm WARN jsreport-server@ No repository field. npm WARN jsreport-server@ No license field.

npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! puppeteer@1.14.0 install: node install.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the puppeteer@1.14.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-04-19T14_10_25_149Z-debug.log

bjrmatos commented 5 years ago

duplicate of jsreport/jsreport#538