help icon indicating copy to clipboard operation
help copied to clipboard

NPM terminal command broken but not node

Open kxmndz opened this issue 5 years ago • 1 comments

  • Node.js Version: 15.6.0
  • OS: Windows 10 64-bit
  • Scope (install, code, runtime, meta, other?): runtime

NPM terminal command is broken, but Node isn't. image

When I run a node app from a Git bash, it throws this

FATAL ERROR: Zone Allocation failed - process out of memory
 1: 00007FF710A6540F v8::internal::Isolate::ArchiveSpacePerThread+4447
 2: 00007FF710A002E6 DSA_meth_get_flags+65078

But in my WebStorm terminal, it shows this

Process finished with exit code -1073740791 (0xC0000409)

And nothing happens. I am on Windows 10 Home 64-bit (10.0, Build 19042) with 12 GB of RAM. RAM usage is around ~80 MB for the Node runtime, which is normal for the program I'm running.

I've tried reinstalling Node and NPM, rolling back to old versions, restarting my PC after every time. The problem persists even with older versions of node (I tested 15.6.0, 14.15.4, and 9.0.0)

kxmndz avatar Jan 18 '21 00:01 kxmndz

I just did some more testing, using this very small program:

console.log('Hello World!');

setTimeout(() => {
    console.log('timeout')
}, 2000);

console.log('done');

It crashes before it logs 'timeout', with the same exit code as before (-1073740791). Playing around with the timing, it logs and finishes properly if the delay is changed to 1200 ms, but things get weird at 1265 ms: it logs 'timeout' but crashes with the exit code -1073740791, and at 1270 ms it just crashes without logging 'timeout'.

kxmndz avatar Jan 19 '21 00:01 kxmndz