question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After running cross-env LIMIT=4096 increase-memory-limit run-node package errors

See original GitHub issue

After 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
endelcommented, May 27, 2019

@bartolkaruza’s PR is now avaialble on increase-memory-limit@1.0.7! 🎉

0reactions
dKabcommented, Jun 21, 2019

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.

husky > pre-commit (node v10.13.0)

/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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found