After running cross-env LIMIT=4096 increase-memory-limit run-node package errors
See original GitHub issueAfter I run cross-env LIMIT=4096 increase-memory-limit
I am no longer able to do git commit. This is because I use husky for git -hooks and apparently it uses run-node
package. This package gets damaged by cross-env LIMIT=4096 increase-memory-limit
and stops functioning. I’m forced to rm -rf node_modules
to be able to commit again.
Here’s the error that it gives me:
node_modules/run-node/run-node: line 26: syntax error near unexpected token (' node_modules/run-node/run-node: line 26:
has_node --max-old-space-size=4096() {’
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
node.js - npm install - javascript heap out of memory
npm install -g increase-memory-limit. Run from the root location of your project: ... Solved for me, after running the command: npm update.
Read more >How Can I Increase the Max Memory for Node?
This can cause unexpected memory issues when running on CircleCI. It's possible to adjust the max memory ceiling using a command-line flag ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bartolkaruza’s PR is now avaialble on
increase-memory-limit@1.0.7
! 🎉After upgrading to 1.0.7 I have new error - of the same type, but with different package. This time it’s lint-staged package that gets broken.
/node_modules/lint-staged/index.js:9 node --max-old-space-size=4096: ‘>=8.6.0’ ^^
SyntaxError: Unexpected token –
Should we reopen this one or create new?