contactlkp.blogg.se

Node js compile to exe
Node js compile to exe















Copy the Node.js binary – node.exe on Windows, (probably) /usr/local/bin/node on OS X/Linux to your project's root folder.It is important to perform this step on each platform you want to support separately, in case of binary dependencies.

NODE JS COMPILE TO EXE INSTALL

  • npm install all dependencies (via package.json) to the local node_modules directory.
  • where it can be handy to have an app "just running" without the need for the end user to care about installation and dependencies. PS: I do not want the user to install Node.js independently, it should be included inside the executable as well.įirst, we're talking about packaging a Node.js app for workshops, demos, etc. Oh, and what's important: I do not want to make any changes to the source code, so calls to require with relative paths should still work, even if this relative path is now inside the packaged app. The output should be binaries for various platforms, such as Windows, OS X and Linux. js files, the node_modules folder and some metadata, such as the package.json. The source folder contains the app itself in various. The perfect solution was a "compiler" I can give a source folder to.

    node js compile to exe

    How could I achieve this in a platform-independent manner? Any ideas? Best practices?. I am aware of this thread, anyway this is only about Windows.

    node js compile to exe

    What I'd prefer was a single executable file, e.g. Of course, I want to make it easy for the user, hence I do not want him to install Node.js, run npm install and then manually type node app.js. Supposed I have written a Node.js application, and I now would like to distribute it.















    Node js compile to exe