首页 > 解决方案 > Firebase 部署错误:“malloc:无法分配区域”或“分段错误:11”

问题描述

我有一个角度应用程序,我正在尝试将它部署到我的 Firebase 主机。

我不断收到此错误:

node(2216,0x10c6afdc0) malloc: can't allocate region
*** mach_vm_map(size=9494189756595048448) failed (error code=3)
node(2216,0x10c6afdc0) malloc: *** set a breakpoint in malloc_error_break to debug
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
Abort trap: 6

或者

Segmentation fault: 11

我在 Mac 上使用 Visual Studio Code。这些是我正在使用的一些库:

标签: angularfirebase

解决方案


有类似的问题并通过更新解决了firebase-tools

npm install -g firebase-tools

推荐阅读