Git: Installing Git in PATH with GitHub client for Windows

问题:

How do I install Git in my PATH when using the GitHub client for Windows?使用适用于 Windows 的 GitHub 客户端时,如何在我的PATH安装 Git?

I'm running into errors because apparently Git is not installed in PATH.我遇到了错误,因为显然 Git 没有安装在 PATH 中。 For example, using Atom, trying to install the Linter plugin gives this error:例如,使用 Atom,尝试安装 Linter 插件会出现以下错误:

npm ERR! not found: git
npm ERR! 
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

Does GitHub for Windows install Git when it installs? GitHub for Windows 安装时会安装 Git 吗? (It must, otherwise how does it use Git?) I don't want to double-install it... so how do I just add the Git that's already there to PATH? (它必须,否则它如何使用 Git?)我不想双重安装它......那么我如何将已经存在的 Git 添加到 PATH?


解决方案:

参考一: https://en.stackoom.com/question/1nh9s
参考二: https://stackoom.com/question/1nh9s
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章