#1024·shelljs

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

Author: hpx7Created Mar 16, 2021Updated Oct 16, 2024
Labelsexecneeds feedback

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:

javascript
shelljs_1["default"].exec("git clone " + gitUrl)