jsreport start not working
-
Hi, i am new to jsreport and is trying to install jsreport. I followed the steps mentioned below
npm install -g jsreport-cli
jsreport init
jsreport configure
jsreport start
But on executing jsreport start, i am getting the error as
"start" command not found in this installation
-
hi! are you trying the command in empty directory? can you show that contents of your package.json?
-
Hi,
The contents of the package.json is as follows{
"name": "jsreport-server",
"main": "server.js",
"scripts": {
"start": "node server"
},
"jsreport": {
"entryPoint": "server.js"
},
"dependencies": {
"jsreport-core": "^2.0.3"
}
}
Thanks
-
i see, is your intention to use jsreport-core or jsreport directly? most users go with jsreport, core is for advanced uses cases but if you are just getting started just create new empty directory (no previous package.json in there or any other file, or any node_modules installed), and run jsreport init in there, that should install jsreport normally.
if your intention is to use jsreport-core and also the cli, you should also install the jsreport-cli in your project to make the commands work. if you just use jsreport package directly (not jsreport-core) then you should not worry about this, the cli will work there normally.