Nexe: node --max_old_space_size=5000

Created on 21 Sep 2017  路  6Comments  路  Source: nexe/nexe

Ok so basically how do you set the max old space size for a exe you create with nexe ? I need to set this variable before i package the js file so it uses the max old space user defined. thanks

Most helpful comment

Right.

All 6 comments

You can use the flag/option enableNodeCli
https://github.com/nexe/nexe#enablenodecli-boolean

If you use this flag you also have to use --build.

See nexe --help for all the options

ok , does that mean that the exe i make will still just run without any cmd node being typed ? i currently am doing this ... nexe -i csv-to-json.js -o 100th-frame-Downsampling.exe -t v8.4.0-win-x86

Do nexe csv-to-json.js -o 100th-frame-Downsampling.exe -t x86-8.4.0 --enableNodeCli --build

The resulting 100th-frame-Downsampling.exe can then be executed with --max_old_space_size=5000 This overrides the cli back to nodes, which blocks unknown cli arguments

so build the exe using your first line ... then when i execute the exe add the --max_old_space_size=5000 to a shortcut ? ..... i am hopeful that the exe will run without any additional commands

Right.

Awesome !! your a legend !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nfrasser picture nfrasser  路  6Comments

frederikhors picture frederikhors  路  3Comments

ricardopolo picture ricardopolo  路  6Comments

jgoux picture jgoux  路  5Comments

poelstra picture poelstra  路  5Comments