Visual Studio代码报告"看起来您的系统上没有安装git." 当我尝试切换到git视图.我知道我安装了git并被其他git客户端使用.我想如果我按照Visual Studio Code的说明重新安装git("用Chocolatey安装它或从git-scm.com下载它"),它可能可以解决问题,但我不想搞砸现有的git我系统上的客户.是否有可靠的方法来配置Visual Studio代码,以便它可以找到现有的git安装?
根据https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
安装程序包括Git的命令行版本以及GUI.它也适用于Powershell,并设置可靠的凭据缓存和理智的CRLF设置.
当我从https://desktop.github.com/发布最新的下载时,它立即运行,并没有让我安装命令行版本.我通过输入git检查了cmd,命令无法识别.
GithubDesktop是否真的安装了Git命令行,如果没有,我可以强迫它以某种方式这样做吗?
更新:我找到了安装但无法从Powershell访问它.
我想在命令提示符下使用 Vim,但它给了
vim 不被识别为内部或外部命令
我尝试搜索解决方案,发现我应该编辑用户特定的环境变量“路径”,但它仍然给出相同的错误。解决办法是什么?
我试图npm install在从ASP.NET Boilerplate获得的有角度的项目文件夹中运行,并且遇到“与npm找不到文件有关的错误”。
D:\Dev\AspNetBoilerplate\MyProject\3.5.0\angular>npm install
npm WARN deprecated @types/moment@2.13.0: This is a stub types definition for Moment (https://github.com/moment/moment). Moment provides its own type definitions, so you don't need @types/moment installed!
npm WARN codelyzer@3.2.2 requires a peer of @angular/compiler@^2.3.1 || >=4.0.0-beta <5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN codelyzer@3.2.2 requires a peer of @angular/core@^2.3.1 || >=4.0.0-beta <5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING …Run Code Online (Sandbox Code Playgroud) 我正在尝试将 GitHub 项目克隆到 Visual Studio 中,因此我转到新终端并输入:
git clone [CLONE WITH SSH LINK]
Run Code Online (Sandbox Code Playgroud)
它显示:
git :术语“git”不被识别为 cmdlet、函数、脚本文件或可操作程序的名称。检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。
但是,我已经安装了 Git,并且 Git 在 Visual Studio 设置中设置为“启用”。
为什么会出现此错误?如何修复它?
我如何在 Visual Studio 中设置/更改 Git 的路径...
我从这里在我的Windows 7中安装了GitHub桌面应用程序,然后重新启动了我的笔记本电脑.我转到Windows cmd并键入git clone https://github.com/myName/myAwesomeProject.git然后我就可以了'git' is not recognized as an internal or external command, operable program or batch file..
所以我用Google搜索,发现我必须从这里重新设置PATH .我去了C>Program Files (x86),那里没有Git文件夹.我不知道为什么.我在C里搜索了"Git"并在这里找到了它C:\Users\nerd\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad,我把它复制到了我的PATH,重新启动了笔记本电脑并且克隆现在正常工作.
我的问题是,为什么Git安装在该位置而不是Program Files?我做错什么了吗?这会在未来引起问题吗?
我正在使用Windows Server 2008操作系统.我下载composer setup.exe并安装到我的电脑上.当我尝试install composer .我收到一个错误:
'composer'不被识别为内部或外部命令,
例如:-
c:\xampp\htdocs\shop>composer install
'composer' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)
我的环境变量PATH如下所示:
C:\xampp\php\;C:\Users\Administrator\AppData\Roaming\Composer\vendor\bin
Run Code Online (Sandbox Code Playgroud) 我一直尝试在cmd上使用Github命令,但它不断输出
“git”未被识别为内部或外部命令
我的路径已经设置,看起来像
C:\Users\用户\AppData\Local\GitHubDesktop\bin
我真的不知道该怎么办;我已经尝试过重新启动并重新安装。我看到另一个问题也有类似的问题,但答案对我来说不太有意义。附注:我使用的是Windows 10系统
git ×5
github ×3
angular ×1
appdata ×1
cmd ×1
composer-php ×1
installation ×1
node-modules ×1
node.js ×1
npm ×1
path ×1
php ×1
vim ×1
windows ×1