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
    0_1528918888613_upload-cde5940b-fbd4-402c-b551-c75bfb7e13a3
    "start" command not found in this installation


  • administrators

    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


  • administrators

    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.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.