cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] NPM terminal command broken but not node

Open kxmndz opened this issue 5 years ago • 2 comments

Current Behavior:

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)

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:

  1. Install/log in to the Discord app if not already present
  2. Unpack program.zip
  3. cd into the folder
  4. Run npm i (note: I can't do this because my npm terminal command is unresponsive)
  5. Run npm run start
  6. This should output RPC set and 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 -v is unresponsive

kxmndz avatar Jan 18 '21 01:01 kxmndz

@kxmndz do you happen to know which versions of npm were being run with the older versions of node you tried?

darcyclarke avatar Feb 02 '21 07:02 darcyclarke

@darcyclarke sorry but no, I didn't check. The problem fixed itself after updating Windows and reinstalling both node and npm though.

kxmndz avatar Feb 05 '21 05:02 kxmndz