我正在尝试在 Ubuntu 14.04.02 上,在具有 4gb RAM 的虚拟机中执行 Jest。节点版本 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
当我运行 npm test 时,我不断收到各种内存不足错误:
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
知道最低内存要求是什么......或者我是否有错误配置导致这种情况?