【发布时间】:2021-12-13 00:53:44
【问题描述】:
刚刚在 VSCode 终端中运行 npm install git 并运行 git --version 并得到以下响应:
git : The term 'git' 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 that the path is correct and try
again.
At line:1 char:1
+ git --version
+ ~~~
+ CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
安装 Node.js 和 git install 后已经重新启动。请帮助让 git 在 VSCode 中工作。
【问题讨论】:
-
出于好奇:是什么让您认为
npm install git是安装 git 的正确方法?
标签: git npm visual-studio-code