在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安装,解决了问题。
- 在更新到npm 3.3.12之后,使用Jest进行unit testing时出错
- React组件在浏览器中正确渲染,但Jesttesting时出现错误:“只有ReactOwner可以引用”
- 与coffeescript jsx的Jest?
- babel-jest ES2015import报表
- 笑话 – 有没有办法检查testing覆盖率的百分比?
- Jest JStesting覆盖率数据不会从Codeship发布到代码气候
- 如何在不使用Jesttesting运行器的情况下使用Jest的断言库?
- 用笑话嘲笑mongoose模型
- 意外的令牌导入native-base-shoutem-theme / index.js:1可能是native-base / react-native