【问题标题】:PhpStorm, Windows 10 PowerShell and Git commandsPhpStorm、Windows 10 PowerShell 和 Git 命令
【发布时间】:2020-01-01 16:19:52
【问题描述】:

我在 Windows 上使用 PhpStorm,并且正在尝试学习使用 CLI。

所以在程序设置中,我使用 Windows PowerShell 作为本机终端。 我安装了 git、node 和 npm。 我对在 Windows 上使用命令行非常陌生.....

当单独使用 PowerShell 时,git --version 命令会为我提供正确的 git 版本。在链接到 PowerShell 的 PhpStorm 终端中使用相同的命令时,我收到一个错误(对德语感到抱歉):

"git : Die Benennung "git" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie登伏尔甘。”

我做错了什么??还是我错过了什么??

【问题讨论】:

    标签: php powershell phpstorm


    【解决方案1】:

    您在终端的 PATH 环境变量中没有 git。如果您在 Settings 对话框中寻找“终端”,您可以使用 Environment Variables 部分进行调整。我的是空的,我检查了 Include system environment variables,我相信这是默认设置。

    【讨论】:

      【解决方案2】:

      请使用 PhpStorm 以管理员身份运行。

      【讨论】:

        猜你喜欢
        • 2016-05-27
        • 1970-01-01
        • 2018-01-04
        • 2016-06-07
        • 1970-01-01
        • 2017-02-05
        • 2016-01-31
        • 1970-01-01
        • 2018-06-30
        相关资源
        最近更新 更多