我在 Windows 的 Intellij 中運行 sh 檔案時遇到問題。
當我單擊檔案中的運行按鈕時,我得到了如下所示的輸出。
PS C:\Users\username\IdeaProjects\library> /bin/sh C:/Users/username/IdeaProjects/library/aws-setup.sh
/bin/sh : The term '/bin/sh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify t
hat the path is correct and try again.
At line:1 char:1
/bin/sh C:/Users/username/IdeaProjects/library/aws-setup.sh
~~~~~~~
CategoryInfo : ObjectNotFound: (/bin/sh:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException
我該如何解決?
uj5u.com熱心網友回復:
設定設定(macOS 上的首選項)| 工具 | 終端 | 解釋器路徑設定為的Shell 路徑c:\Program Files\Git\bin\bash.exe或使用 Shell 腳本運行配置bash.exe:

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/517757.html
標籤:视窗智能理念嘘
