Hi there,
After I installed the node js v10.15.3, if I run"node -v", it will successfully show the node version, but If I run any npm command, I will got the below error:
$ node -v
v10.15.3
$ npm -v
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 000000013FB1F04A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+5114
2: 000000013FAFA0C6 node::MakeCallback+4518
3: 000000013FAFAA30 node_module_register+2032
4: 000000013FD820EE v8::internal::FatalProcessOutOfMemory+846
5: 000000013FD8201F v8::internal::FatalProcessOutOfMemory+639
6: 00000001402A2BC4 v8::internal::Heap::MaxHeapGrowingFactor+9556
7: 0000000140299C46 v8::internal::ScavengeJob::operator=+24310
8: 000000014029829C v8::internal::ScavengeJob::operator=+17740
9: 000000014029E1B7 v8::internal::Heap::CreateFillerObjectAt+1175
10: 000000014012C5B3 v8::internal::interpreter::Interpreter::GetDispatchCountersObject+78451
11: 000000013FA81132 v8::internal::StackGuard::ArchiveSpacePerThread+52082
12: 000000013FA817F3 v8::internal::StackGuard::ArchiveSpacePerThread+53811
13: 000000013FB61474 uv_dlerror+2436
14: 000000013FB621D8 uv_run+232
15: 000000013FB0128E node::NewContext+1390
16: 000000013FB0189B node::NewIsolate+603
17: 000000013FB01D07 node::Start+839
18: 000000013F9B935C node::MultiIsolatePlatform::MultiIsolatePlatform+604
19: 000000014055A93C v8::internal::compiler::OperationTyper::ToBoolean+134796
20: 0000000076DC556D BaseThreadInitThunk+13
21: 000000007702385D RtlUserThreadStart+29
6.4.1
I have tried other versions also, still get the same issue. And My colleagues have installed the same version on the similar platform, the node and npm works fine on their computer. I have googled this issue, but none can revolve the issue on my computer.
Can you fill out the issue template?
I think you have not installed npm package manager correctly.
re-installation might help!
Can you fill out the issue template?
Thanks bnoordhuis. What did you mean by saying the issue template. I have paste all the issue I got from console here.
I think you have not installed npm package manager correctly.
re-installation might help!
Thanks Kartikey. actually the install process is very straight forward. no special settings, you just need to click next-next-next... and I have re-installed many times with different version. everytime after install, i will get the same error. my colleagues have installed the same version on their desktop, and all of them works fine.
@bfhuang https://github.com/nodejs/node/issues/new?template=1-bug-report.md <- that issue template
@bfhuang https://github.com/nodejs/node/issues/new?template=1-bug-report.md <- that issue template
Thanks bnoordhuis. I have updated the issue with the template
There have been similar reports caused by an outdated version of npm. Try uninstalling and make sure there's no trace of npm left on your hard drive(s) afterwards, then reinstall.
If the issue persists, you should probably report it to npm directly, rather than here, unless other Node.js programs exhibit the same behavior.
If your application crash while building scss files try installing those dependencies node-sass, style-loader and sass-loader, this worked for me!
Any update about this? the same issue in my side.
Upgrading my Node version to 10.17.0 (from 10.16.3) solved this issue for me for a similar issue
Looks like this issue was forgotten to be closed. I'll do that now.
Most helpful comment
Any update about this? the same issue in my side.