在Ubutu上执行Jest时,内存不足错误
我试图在Ubuntu 14.04.02上执行Jest,在一个4GB内存的虚拟机上执行。 节点版本0.12.2,npm 2.0.0-alpha-5
免费给我看:
total used free shared buffers cached Mem: 3.8G 199M 3.6G 976K 1.1M 18M
当我运行npmtesting时,我不断收到各种内存不足的错误:
Error: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory # Fatal error in ../deps/v8/src/heap/store-buffer.cc, line 132 # CHECK(old_virtual_memory_->Commit(reinterpret_cast<void*>(old_limit_), grow * kPointerSize, false)) failed
任何想法最低内存要求是什么…或者如果我有错误configuration的东西导致这个?
原来降级到节点版本0.10.32,通过npm安装,解决了问题。