JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12887
  • Score
    100M100P100Q197006F
  • License ISC

Increase memory limit for local node binaries ('max-old-space-size')

Package Exports

  • increase-memory-limit

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (increase-memory-limit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

increase-memory-limit

Workaround to fix heap out of memory when running node binaries. It's a common issue when using TypeScript 2.1+ and webpack.

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

How to use

npm install -g increase-memory-limit

Run from the root location of your project:

increase-memory-limit

This tool will append --max-old-space-size=4096 in all node calls inside your node_modules/.bin/* files.

License

MIT