Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: "git" command line tool is not installed:

Tags:

git

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.

like image 583
Phillip Senn Avatar asked Mar 03 '14 17:03

Phillip Senn


1 Answers

npm install -g git

This will install the NPM package git (also known as node-git). This is not the same as the real Git that is available as a command line utility. The former NPM package is essentially a Node JS module to utilize Git functionality. And as the project explains, it also contains some actions natively, but for many others it will need to fall back to the command line utility.

So, you should just install the real Git.

like image 197
poke Avatar answered Oct 18 '22 16:10

poke