Error when trying to export to windows

Hello! I have been working on a game for a couple of weeks, my first one ever, i started getting an error lately that i wasn’t getting before when i try exporting the game, be it as a zip file or as an auto-installer file.

Here is the error text:

Error: Cannot spawn /usr/local/bin/node: Error: spawn ENOMEM
at ChildProcess.spawn (internal/child_process.js:358:11)
at spawn (child_process.js:533:9)
at doSpawn (/worker/node_modules/builder-util/src/util.ts:174:12)
at Promise (/worker/node_modules/builder-util/src/util.ts:208:28)
at new Promise ()
at spawn (/worker/node_modules/builder-util/src/util.ts:206:10)
at installDependencies (/worker/node_modules/electron-builder-lib/src/util/yarn.ts:88:10)
at /worker/node_modules/electron-builder-lib/src/util/yarn.ts:17:11
at ()
at Generator.tryCatcher (/worker/node_modules/bluebird/js/release/util.js:16:23)
at PromiseSpawn._promiseFulfilled (/worker/node_modules/bluebird/js/release/generators.js:97:49)
at Promise._settlePromise (/worker/node_modules/bluebird/js/release/promise.js:574:26)
at Promise._settlePromise0 (/worker/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/worker/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/worker/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/worker/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (/worker/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:121:23)

If anyone has any idea as to why this is happening i would appreciate some help.

Thanks in advance for any help!

I cut and paste my error into google and found yours!
So I’m guessing it’s a similar issue…
I’ve tried removing music and shrinking the size and purging resources…
I exported my demo fine, but with the full game it tells me this every time, which tells me nothing really…
Has anyone helped you in the last year??

Hello! Today i got the same Error. I exported for Windows so I just made an Icon vor Windows. After I pressed “Generate Icons from a File” and picked my Icon Gdevelop created my Icon for every platform. And suddenly i could build my Game without an Error. Hope this helps you.