ng build --prod have javaScript heap out of memory error

前端 未结 4 794
孤街浪徒
孤街浪徒 2020-12-21 01:08

I am facing the below issue while using ng build --prod.

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out o

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-21 02:08

    this worked for me:

    npm install increase-memory-limit -g
    

    then

    increase-memory-limit
    

    for more details, you can check AOT build fails due to "JavaScript heap out of memory

提交回复
热议问题