错误:“git”命令行工具未安装: [英] Error: "git" command line tool is not installed:

查看:448
本文介绍了错误:“git”命令行工具未安装:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图:

  cordova插件添加https://github.com/wildabeast/BarcodeScanner.git 

但是我得到:

 错误:未安装git命令行工具:
确保它可以在PATH上访问。

然后我这样做:

  npm install -g git 

看起来它安装了它这里:

  c:\ Users \Phillip\AppData\Roaming\\\
pm\\\
ode_modules\git

那么应该将其添加到我现有的路径中?

< blockquote>

C:\程序文件\ Common Files \ Microsoft Shared \ Windows Live; C:\程序
文件(x86)\ Common Files \ Microsoft Shared \\ \\ Windows
Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\; c:\ Program
文件(x86)\ Common Files \Roxio Shared\10.0\DLLShared\; c:\程序文件
(x86)\ Common Files \Roxio
Shared\DLLShared\; C:\AdobeAIRSDK\bin; C:\程序文件(x86)\Windows
Live\Shared; c:\程序文件\ Microsoft SQL
Server\110\Tools\Binn\; c:\程序文件(x86)\ Microsoft SQL
服务器\ 110 \Tools\Binn\; c:\程序文件\ Microsoft SQL
Server\110\DTS\Binn\; c:\程序文件(x86)\ Microsoft SQL
Server\110\Tools\Binn\ManagementStudio\; c:\程序文件
(x86)\ Microsoft SQL Server \ 110 \DTS\Binn\\ \\; C:\ Program Files(x86)\ Common
Files \Acronis\SnapAPI\; C:\ Program Files \Microsoft\Web Platform
Installer\; C :\程序文件(x86)\QuickTime\QTSystem\; C:\程序
文件\\\
odejs\; C:\ apache-ant\bin; C:\Development\\ \\adt-bundle\sdk\platform工具; C:\Development\adt-bundle\sdk\tools;%JAVA_HOME%\bin; C:\AndroidDevelopmentKit\adt-bundle- windows-x86_64-20131030\sdk\platform-tools; C:\AndroidDevelopmentKit\adt-bundle-windows-x86_64-20131030\ddd\\工具


或者我应该添加除c之外的其他内容:\ Users \Phillip\AppData\Roaming\\\
pm\\\
ode_modules\git?
因为我在那里看不到可执行文件。

解决方案

您需要安装 git 可执行文件。检查如何从Windows部分安装它: git安装 msysgit


I'm trying to:

cordova plugins add https://github.com/wildabeast/BarcodeScanner.git

But I'm getting:

Error: "git" command line tool is not installed:
make sure it is accessible on your PATH.

So then I do this:

npm install -g git 

And it looks like it installed it here:

c:\Users\Phillip\AppData\Roaming\npm\node_modules\git

So should add that to my existing path?

C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\AdobeAIRSDK\bin;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;c:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\nodejs\;C:\apache-ant\bin;C:\Development\adt-bundle\sdk\platform-tools;C:\Development\adt-bundle\sdk\tools;%JAVA_HOME%\bin;C:\AndroidDevelopmentKit\adt-bundle-windows-x86_64-20131030\sdk\platform-tools;C:\AndroidDevelopmentKit\adt-bundle-windows-x86_64-20131030\sdk\tools

Or should I add something other than c:\Users\Phillip\AppData\Roaming\npm\node_modules\git? Because I don't see an executable there.

解决方案

You need to install the git executable. Check how to install it from the Windows section here: git installation or msysgit

这篇关于错误:“git”命令行工具未安装:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆