/bin/sh not found — spawnSync

て烟熏妆下的殇ゞ 提交于 2019-12-24 05:18:05

问题


after executing a command with execSync which executes with sh I noticed the following:

spawnSync /bin/sh ENOENT

bin is currently added to PATH.

any thoughts?


回答1:


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?




回答2:


This error can also be caused by passing a directory that does not exist to the cwd. Double check that the path you are passing as the cwd option is correct.



来源:https://stackoverflow.com/questions/39754168/bin-sh-not-found-spawnsync

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!