Skip to content

打包报错,内存不够或溢出 #133

Open
@deepthan

Description

@deepthan

在打包的时候加上 node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng buildmax_old_space_size的值可以设置大点。

往根源上来说这个问题实际上是 node 的问题,Angular 在 AOT 时的确会根据项目大小很吃内存,目前除了利用 max_old_space_size 给 Node 环境更大的内存好像没有更好的办法。

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions