Error: spawn E2BIG
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top GitHub Comments
@BenGitsCode Yeah. I usually use
del-cli
for deletingnode_modules
as it’s not something I would ever care about recovering.@dawsonbotsford No, that’s not what I’m saying. That would be very surprising behavior. I just use
del-cli
instead oftrash
when deletingnode_modules
.