ShellJSInternalError: ENOENT: no such file or directory, open '/tmp/shelljs_...'
See original GitHub issueNode version (or tell us if you’re using electron or some other framework):
v14.8.0
ShellJS version (the most recent version/Github branch you see the bug on):
0.8.4
Operating system:
Ubuntu
Description of the bug:
ShellJSInternalError: ENOENT: no such file or directory, open '/tmp/shelljs_87bea80abecef2d76bf8'
at Object.openSync (node:fs:497:3)
at Object.readFileSync (node:fs:393:35)
at execSync (/root/rtag-deploy/node_modules/shelljs/src/exec.js:89:17)
at Object._exec (/root/rtag-deploy/node_modules/shelljs/src/exec.js:205:12)
at Object.exec (/root/rtag-deploy/node_modules/shelljs/src/common.js:335:23)
Example ShellJS command to reproduce the error:
shelljs_1["default"].exec("git clone " + gitUrl)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:24 (10 by maintainers)
Top Results From Across the Web
node.js - ENOENT, no such file or directory
I know the file is there because when I try to open the file using the exact copied and pasted path, it works....
Read more >Error: ENOENT: no such file or directory, open
We tried to import the project in Visualizer, but when we run the program, we encountered this error. Anyone familiar with this?
Read more >faker-js
ENOENT : no such file or directory, open ".../tmp/source_map_concat-input_base_path-25zKGwjR.tmp/bower_components/Faker/build/build/faker.js".
Read more >How to Fix npm ERR Code ENOENT npm ERR syscall Open ...
In This Video We Will See How to Fix npm ERR Code ENOENT npm ERR syscall Open Error or ENOENT No Such File...
Read more >Resolve npm WARN saveError ENOENT no such file or ...
npm install react npm WARN saveError ENOENT: no such file or directory, open '/Users/nsebhastian/DEV/n-app/package.json' npm WARN enoent ...
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 Free
Top 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

Any updates/workarounds on this issue? I’m running into it on my 12.22.1 Node environment running on AWS EC2. The command in specific I’m tryin to execute is
shell.exec('sed -i '' 1d file.cs'v). Thanks!Yes, I am running exec inside an express http handler. It usually works the first time after the server starts but on subsequent requests I get this error. Restarting the server makes it work again (for the next request).