作者:大眼妹PS珺珺 | 来源:互联网 | 2023-09-02 10:38
前面安装的有node,因为配置环境变量导致各种问题,然后清除了环境变量,重新安装node
安装完之后,node -v很快显示
C:UsersAdministrator>node -v
v12.13.0
npn -v 一直卡住不动
C:UsersAdministrator>npm -v
过了好久:
出现:
C:UsersAdministrator>node -v
v12.13.0
C:UsersAdministrator>npm -v
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - Javascript heap out of memory
1: 00007FF7C87D094F napi_wrap+124431
2: 00007FF7C8772696 v8::base::CPU::has_sse+34502
3: 00007FF7C8773356 v8::base::CPU::has_sse+37766
4: 00007FF7C8F76F4E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF7C8F5EF91 v8::SharedArrayBuffer::Externalize+833
6: 00007FF7C8E2C85C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436
7: 00007FF7C8E37C00 v8::internal::Heap::ProtectUnprotectedMemoryChunks+1312
8: 00007FF7C8E34734 v8::internal::Heap::PageFlagsAreConsistent+3204
9: 00007FF7C8E29FC3 v8::internal::Heap::CollectGarbage+1283
10: 00007FF7C8E2C9AA v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1770
11: 00007FF7C8E23053 v8::base::CPU::has_vfp3+467
12: 00007FF7C871E73C v8::internal::wasm::SignatureMap::Freeze+120892
13: 00007FF7C871D6E0 v8::internal::wasm::SignatureMap::Freeze+116704
14: 00007FF7C8819AAB uv_async_send+331
15: 00007FF7C881924C uv_loop_init+1212
16: 00007FF7C8819414 uv_run+244
17: 00007FF7C873B892 EVP_CIPHER_CTX_buf_noconst+30946
18: 00007FF7C8799263 node::Start+275
19: 00007FF7C865666C RC4_options+339308
20: 00007FF7C9455D58 v8::internal::SetupIsolateDelegate::SetupHeap+1301368
21: 00007FFC46607974 BaseThreadInitThunk+20
22: 00007FFC484AA271 RtlUserThreadStart+33
6.12.0
跪求解决方案