nodejs to exe 1

nodejs to exe

npm install -g pkg
pkg exampleApp.js

Here is what the above code is Doing:
1. We’re using the pkg module to package our app.
2. We’re using the -g flag to install the pkg module globally.
3. We’re using the pkg command to package our app.
4. We’re passing in the name of our app as an argument to the pkg command.

Now, let’s run the above code:

$ node packageApp.js

Similar Posts