关闭

angular编译时内存溢出

别叨叨 1年前 ⋅ 215 阅读

try running the build with this

node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve

or other way is to add this to the package.json

"build-serve": "node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng serve"

where 8048 is the max heap size.


全部评论: 0

    我有话说: