最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - binsh not found -- spawnSync - Stack Overflow

programmeradmin7浏览0评论

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?

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?

Share Improve this question asked Sep 28, 2016 at 17:34 DrewDrew 2,6636 gold badges37 silver badges55 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 9

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?

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.

发布评论

评论列表(0)

  1. 暂无评论