0

I have a nodejs app app.js which I'm able to execute with help of the command line tool (changing to the direction of the app and executing the command node app.js before that the application is installed with npm install). To make it easier in the daily use i would like to make the app executable, both parts, the installation as well as the trigger of the app.

The app is for generating a small report, I already tried it with a script where I saved the command node app.js.

nalply
  • 26,770
  • 15
  • 78
  • 101
Mens
  • 1
  • 1
  • 3

1 Answers1

1

You might use pkg.

This command line interface enables you to package your Node.js project into an executable that can be run even on devices without Node.js installed.

pmaldera
  • 157
  • 7
  • hi, I was able to package the app but the packaged app is not running on Windows (as .exe file). Will try the packaged MacOS app on Monday, this is way more important than the windows part. – Mens Aug 02 '19 at 23:32