Import-export using jsreport-cli without installing it globally



  • We want to use jsreport-cli without installing it globally.

    While running it for import from \node_modules\.bin folder, where jsreport was hosted as an application, but we faced the following error:

    Although the "@jsreport/jsreport-cli": "^4.0.5" package is installed in the hosted application.

    Couldn't find a jsreport installation necessary to continue with the execution of the command, make sure to install jsreport first.

    Could you please guide us on how to perform the jsreport import-export activity without installing it globally?


  • administrators

    hi!!

    you should be able to execute the cli without the global installation by doing any of the following methods:

    (all methods assume you execute the command from the root of your project)

    • executing npx jsreport <command>
    • executing node node_modules\.bin\jsreport <command>

    if this does not work, please share more details, like:

    • the jsreport version you are using
    • where are you trying to execute this? local machine? server? windows? linux?
    • do you execute this manually? or are you using some CI or automated process?

Log in to reply
 

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