[英]/bin/sh not found -- spawnSync
after executing a command with execSync
which executes with sh
I noticed the following:在使用
sh
执行的execSync
执行命令后,我注意到以下内容:
spawnSync /bin/sh ENOENT
bin
is currently added to PATH. bin
当前已添加到 PATH。
any thoughts?有什么想法吗?
Normally the cause is that the path where you are executing this doesn't exist通常原因是您执行此操作的路径不存在
see the accepted answer in this question请参阅此问题中已接受的答案
How do I debug “Error: spawn ENOENT” on node.js? 如何在 node.js 上调试“错误:生成 ENOENT”?
This error can also be caused by passing a directory that does not exist to the cwd
.将不存在的目录传递给
cwd
也可能导致此错误。 Double check that the path you are passing as the cwd
option is correct.仔细检查您作为
cwd
选项传递的路径是否正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.