JavaScript heap out of memory

Workaround to fix heap out of memory when running node binaries. It's a common issue when using TypeScript 2.1+ and webpack.
This tool will append --max-old-space-size=4096 in all node calls inside your node_modules/.bin/* files.

  1. 全局安装increase-memory-limit
npm install -g increase-memory-limit
  1. 进入工程目录,执行 :
increase-memory-limit

你可能感兴趣的:(JavaScript heap out of memory)