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.

ShellJSInternalError: ENOENT: no such file or directory, open '/tmp/shelljs_...'

See original GitHub issue

Node 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:open
  • Created 3 years ago
  • Reactions:5
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Covmoncommented, Jul 9, 2021

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!

1reaction
hpx7commented, Mar 16, 2021

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).

Read more comments on GitHub >

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

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