npm install - javascript heap out of memory

前端 未结 6 456
面向向阳花
面向向阳花 2020-12-03 09:48

When running npm install -g ionic I get the following error:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of

6条回答
  •  时光说笑
    2020-12-03 10:03

    You can launch NPM using :

    node --max-old-space-size=8000 $(which npm) install -g ionic

    As described here, the default is 4000 (4Gb).

提交回复
热议问题