LoginSignup
1

Ineffective mark-compacts near heap limit Allocation failedエラーの解決

npm run buildしたところ

Ineffective mark-compacts near heap limit Allocation failed

というエラーが。

その場合

export NODE_OPTIONS="--max-old-space-size=4096

を打って領域を増やすと大丈夫でした。
※4096の部分は1024とか確保できるメモリ量によって変更必要です。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
1