當運行npm install -g ionic
我得到以下錯誤:NPM安裝 - 的javascript堆出來的內存
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
有沒有辦法在全球範圍內增加了Node.js的內存限制?
當運行npm install -g ionic
我得到以下錯誤:NPM安裝 - 的javascript堆出來的內存
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
有沒有辦法在全球範圍內增加了Node.js的內存限制?
啓動npm您還可以啓動: 'node --max_old_space_size = 8000 $(其中npm)安裝-g離子' –
我檢舉這個重複,但如果有人越過它發生,我張貼的現代解決了這個問題了,在https://stackoverflow.com/a/48895989/4200039:
As of v8.0 shipped August 2017, the NODE_OPTIONS environment variable exposes this configuration (see NODE_OPTIONS has landed in 8.x!). Per the article, only options whitelisted in the source are permitted, which includes "--max_old_space_size".
So I put in my .bashrc: export NODE_OPTIONS=--max_old_space_size=4096
你能告訴我們你使用的是什麼操作系統,什麼版本的節點和npm是? – paolord
Windows 10,Node v6.8.1,npm v3.10.8 – gunwin
可能重複的[致命錯誤:CALL \ _AND \ _RETRY \ _LAST分配失敗 - 進程內存不足](https://stackoverflow.com/questions/26094420/fatal -error-call-and-retry-last-allocation-failed-process-out-of-memory) –