I have server oriented application which using puppeteer and express. Also I use private fields with new "hash" syntax in classes. Is it possible to compile such application to binary executable?
Asked
Active
Viewed 515 times
1
-
1Does this answer your question? [How to make exe files from a node.js app?](https://stackoverflow.com/questions/8173232/how-to-make-exe-files-from-a-node-js-app) – Dickens A S Apr 18 '20 at 15:37
-
@DickensAS Is there any solution that works like pkg? I don't want to check each solution so that I ask here. I was trying to ask question in another way but question was banned by admins because of rule to not recommend tools and libraries. – Piotr Zych Apr 18 '20 at 15:47
-
is it a desktop application GUI or a server background application ? – Dickens A S Apr 18 '20 at 15:48
-
@DickensAS It is desktop server-like application that uses web-browser as view. – Piotr Zych Apr 18 '20 at 15:52
-
still not getting your type of application, but I can give one solution which is `Electron` -- https://www.electronjs.org/ – Dickens A S Apr 18 '20 at 16:05
-
@DickensAS Application has 2 layers: 1. Crawler that works in background and aggregates data, saves to sqlite. 2. Express as application server. Using ejs templates provides GUI for user. – Piotr Zych Apr 18 '20 at 16:11
1 Answers
1
There are tools like pkg that can compile your node.js application to a standalone executable.

Aplet123
- 33,825
- 1
- 29
- 55
-
Problem with `pkg` is that it does not support private fields syntax. – Piotr Zych Apr 18 '20 at 15:43
-
Well then transpile your project with something like babel first and then compile it. – Aplet123 Apr 18 '20 at 15:44
-
Ok but i take a look at your solution. I'll let you know about result, if they will not close thread. – Piotr Zych Apr 18 '20 at 15:54
-
After battle with configuring proper binaries, and node versions finally it works. – Piotr Zych Apr 19 '20 at 12:01