Error: spawn E2BIG

See original GitHub issue

I tried to delete all my node_modules folders, but it seems like I hit some limit. Would it be possible to fix this by letting the trash-cli split up the expanded glob before performing the work?

❯ trash ‘**/node_modules’ Error: spawn E2BIG at exports._errnoException (util.js:1012:11) at ChildProcess.spawn (internal/child_process.js:302:11) at exports.spawn (child_process.js:372:9) at exports.execFile (child_process.js:139:15) at /usr/local/lib/node_modules/trash-cli/node_modules/pify/index.js:29:7 at /usr/local/lib/node_modules/trash-cli/node_modules/pify/index.js:12:10 at ret (/usr/local/lib/node_modules/trash-cli/node_modules/pify/index.js:56:34) at module.exports (/usr/local/lib/node_modules/trash-cli/node_modules/trash/lib/osx.js:37:32) at module.exports (/usr/local/lib/node_modules/trash-cli/node_modules/trash/index.js:22:45) at Object.<anonymous> (/usr/local/lib/node_modules/trash-cli/cli.js:27:1) ~/Devel 1m 49s

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sindresorhuscommented, Jan 28, 2017

@BenGitsCode Yeah. I usually use del-cli for deleting node_modules as it’s not something I would ever care about recovering.

1reaction
sindresorhuscommented, Jan 28, 2017

@dawsonbotsford No, that’s not what I’m saying. That would be very surprising behavior. I just use del-cli instead of trash when deleting node_modules.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: spawn E2BIG · Issue #40 · standard/standard - GitHub
E2BIG means that the argument list is too long. See errors.c where it's defined. I cloned your project and it worked fine for...
Read more >
node.js: gm throws spawn E2BIG error when passed too much ...
I'm not really familiar with node-gm, but I have a feeling that .drawCircle(x1, y1, x2, y2) method just appends a command-line argument ...
Read more >
Solved: 'spawn E2BIG' error with microgateway - Apigee
Solved: I'm getting bellow error with microgateway deployed on openshift. Please suggest. Log Location: [ /opt/apigee/logs/edgemicro.log ] cd.
Read more >
gruntjs/grunt - Gitter
Hey everyone, I was handed a big grunt build process, and this seems to be the error coming : Warning: spawn E2BIG Use...
Read more >
[PM2][ERROR] Process failed to launch spawn E2BIG - Medium
[PM2][ERROR] Process failed to launch spawn E2BIG — [solved]. A couple of weeks ago I ran into an unexpected problem for me.
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