Internal webservice using json-server


I’m trying to build an app for desktops that implements an internal webservice JSON, that query data from a file .json only when this offline, and when this online updates the json file contents .

I 'm using " json -server" by typecode , but is required to be installed globally , so when I build the app and run it sends an error since " json -server" is not running because it is not globally.

Is there any way to publish my app with global agencies or have to find another way to provide internal webservice ?