
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@liwb/increase-memory-limit
Advanced tools
Increase memory limit for local node binaries ('max-old-space-size')
As of Node.js v8.0 shipped August 2017, you can now use the NODE_OPTIONS
environment variable to set the max_old_space_size globally. (#19)
export NODE_OPTIONS=--max_old_space_size=4096
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.
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
npm install -g increase-memory-limit
Run from the root location of your project:
increase-memory-limit
Alternatively, you can configure a npm task to run the fix.
// ...
"scripts": {
"fix-memory-limit": "cross-env LIMIT=2048 increase-memory-limit"
},
"devDependencies": {
"increase-memory-limit": "^1.0.3",
"cross-env": "^5.0.5"
}
// ...
npm run fix-memory-limit
MIT
FAQs
Increase memory limit for local node binaries ('max-old-space-size')
We found that @liwb/increase-memory-limit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.