[BUG] NPM terminal command broken but not node
Current Behavior:
NPM terminal command is broken, but Node isn't.

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)
If it helps, this is the program I'm running: program.zip
Expected Behavior:
Node app runs normally and continues to run until cancelled by the user
Steps To Reproduce:
- Install/log in to the Discord app if not already present
- Unpack program.zip
cdinto the folder- Run
npm i(note: I can't do this because mynpmterminal command is unresponsive) - Run
npm run start - This should output
RPC setand wait until you cancel it, but on my system it crashes itself after a few seconds.
Environment:
- OS: Windows 10 64-bit (10.0, Build 19042)
- Node: 15.6.0
- npm:
npm -vis unresponsive
@kxmndz do you happen to know which versions of npm were being run with the older versions of node you tried?
@darcyclarke sorry but no, I didn't check. The problem fixed itself after updating Windows and reinstalling both node and npm though.