Hexo FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
0xb00d90 node::Abort() [hexo]
…
Powered by:NEFU AB-IN
Hexo FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
-
问题
刚升级了npm,结果出现了
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
0xb00d90 node::Abort() [hexo]
-
解决方法
原因就是内存溢出了
- 增加内存
1 2
| sudo npm i -g increase-memory-limit increase-memory-limit
|
- 扩大NODE运行的内存
1
| export NODE_OPTIONS=--max_old_space_size=4096
|
数值不宜过大,可能会影响服务器运行