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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章