1

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.

2

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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.
The docs also have instructions on how to do this the 'native way': nodejs.org/api/single-executable-applications.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.