【发布时间】:2013-11-14 09:48:30
【问题描述】:
我正在尝试发布一个模块:
npm publish ./
遵循这个要点:https://gist.github.com/coolaj86/1318304
但是当我尝试运行此命令时,我收到以下错误:
FATAL ERROR: JS Allocation failed - process out of memory
npm 进程在内存中达到 1.2 Gb,但在我的计算机中,内存更多,有什么想法吗?
【问题讨论】:
-
如果你的包占用了这么多内存,它可能是错误的
-
什么?例如?我只使用 express 和 mongojs 包做一些路由...
-
这个stackoverflow.com/questions/13616770/… 可能会有所帮助。
-
此处相同:代码可在this repo 中找到。
标签: node.js out-of-memory npm publish fatal-error