【发布时间】:2017-08-15 18:07:04
【问题描述】:
我正在尝试为我的 node.js 代码运行 mocha 测试,该代码运行以下行:
exec(`sh ${scriptFile}`);
当我使用 npm test 从命令行 (Git Bash) 运行它时,它通过了。但是,当我从 WebStorm 运行它时,出现以下错误:
'sh' is not recognized as an internal or external command,
operable program or batch file.
我觉得我可能缺少一些 WebStorm 设置,但我不知道它是什么。有什么想法吗?
附:我在 Windows 上。
【问题讨论】:
标签: windows bash exec sh webstorm