--- tags: Error --- # FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ## 原因與解決方法 記憶體不足 因為 Node 10 預設最多使用 512 MB 記憶體, 可升級新版本或用以下方法 ## 增加記憶體使用上限 在terminal輸入 ```vim export NODE_OPTIONS="--max-old-space-size=8192" # 數字為 4GB 可自行視設備調整 # or for Windows set NODE_OPTIONS=--max_old_space_size=4096 ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up