Questions tagged [nexe]

Nexe is a command-line utility that compiles a Node.js application into a single executable file.

Nexe is a command-line utility that compiles a Node.js application into a single executable file. It is written in TypeScript.

22 questions
4
votes
0 answers

Error while building exe using npm pkg for nodejs executables

I am getting the below error while running executable for nodejs. I tried including the assets in package.json but still the error won't go away. **error: uncaughtException: File 'D:**\app\application_properties\CurrentEnv\application.properties'…
Nirmal Kumar
  • 89
  • 1
  • 7
2
votes
0 answers

nexe not working with node version 15.8.0

Nexe documentation says that it works with Node version 15.8.0 on Windows. So I used nvm to install and switch to node version 15.8.0 but when I run nexe app.js on my windows machine it shows: I do not want to use to --build flag to build from…
goxarad784
  • 395
  • 6
  • 17
1
vote
1 answer

Nexe module Command 'nexe' not found error

I have tried to run nexe --help or nexe index.js but it has returned this error: Command 'nexe' not found, did you mean: command 'rexe' from snap rexe (0.7) command 'next' from deb mailutils-mh (1:3.7-2.1) command 'next' from deb mmh…
Chris Mutua
  • 123
  • 2
  • 6
1
vote
0 answers

Convert Node js app to exe with nexe failed?

I have a node js app that runs a local server on port 8080 that delivers an index.html file. I need to convert the node js app into exe, for a one-click run. I have been trying to convert the node js app to exe with nexe module,but the created exe…
Hack Try
  • 471
  • 4
  • 17
1
vote
1 answer

I have a problem with npm package nexe and visual studio, trying to convert a nodejs app in an .exe

nexe is a npm package to convert nodejs apps to an .exe, but I have a problem when I run nexe --build index.js so I add --verbose and this is the message: the message said: failed to find a suitable Visual studio installation and also vcbuild.bat…
Carlos Martínez
  • 236
  • 2
  • 11
1
vote
0 answers

Is there a way to run nodejs executables created with nexe using pm2?

I've created an nodejs executable on linux using nexe. I've set my module_conf.json file to the below configurations - { "apps" : [{ "name" : "nodeapp", "script" : "./app", "exec_interpreter": "none", "exec_mode" :…
soothsayer
  • 21
  • 9
1
vote
0 answers

How can I incorporate the command line option --max-http-header-size=15000 into my nexe or pkg executable in node js?

In my program, one of the requests I send throws a Header Overflow error upon receiving response. I am currently able to run my program in the command line using node --max-http-header-size=15000 app.js, but now I would like to compile the program…
1
vote
1 answer

Increasing max-old-space-size in node.js app running as Windows service

I'm relatively new to node.js and have built an app that is designed to be deployed as a standalone application without the need to install node.js or any of its dependencies. I'm running into an issue where in specific, not easily reproducible…
1
vote
1 answer

how to access bundled files in compiled .exe by nexe with javascript

I have created a small CLI tool in typescript and have achieved to create a .exe out of it with nexe. A new use case is to write out some files that are bundled within the application: Let's say my CLI tool provides the user with empty template…
Stefan
  • 33
  • 5
0
votes
0 answers

How to view crash logs from an executable compiled through nexe?

I compiled an executable with nexe with this command: nexe ./output/index.js --build windows-x64-14.5.0 --cwd "C:\..." --enableNodeCli. Unfortunately, the exe crashes when I start it and I don't know how to look at any error messages. I tried to…
Daniell
  • 1
  • 2
0
votes
0 answers

Compile NextJS Application after build to an executable

I want to turn a built next js application into an executable using nexe or pkg. After building my next js application the .next folder contains NextJS .next folder after build I want to use the pkg or nexe node packages to turn my application into…
0
votes
0 answers

Increase max heap size for node js build using nexe

I am trying to build my nodejs application built in node 10 into a binary and executing it inside a docker container. When I create a build for this I run the following command to make my build nexe app.js --enableNodeCli -f…
0
votes
0 answers

Unable to correctly get filepaths with statSync in nexe built file

I have the bellow function: ... function getAllFiles(dirPath, echo = true) { const arrayOfFiles = []; if (echo) { console.log("Diretório mapeado: " + dirPath); } const walk = function(currentDirPath) { const files =…
Lucas
  • 1
  • 1
0
votes
1 answer

How to make an executable (.exe) for nodeJs project having files in ES6 format?

I'm working on a project which requires my code to be converted into an executable .exe format to make it run on windows. However I can't find any method or a solution to convert my nodeJs codebase which is in ES6 format into an executable. I came…
Darkness
  • 21
  • 4
0
votes
0 answers

pkg executable not running on another machine

I use pkg from npm, to make my node file executable for windows. When copying/pasting the executable to the VM it works fine, but when uploading in the drive and downloading it from there in my VM, the executable is not running. This is the command…
Mike
  • 43
  • 1
  • 7
1
2