2016-03-28 42 views
0

我正在使用離子框架來創建應用程序,並嘗試在cmd中添加相機插件。cordova安裝條碼插件給出錯誤git命令行

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

這給了一個錯誤

Fetching plugin "https://github.com/wildabeast/BarcodeScanner.git" via 
git clone Error: "git" command line tool is not installed: make sure 
it is accessible on your PATH. at Object.clone 
(C:\Users\Joseph\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\gitclone.js:35:25) 

試圖環境路徑設置爲C:\Program Files\git\bin不解決問題,重新安裝Git並不解決問題爲好。

我正在使用64位Windows 10,任何幫助將非常感激。

回答

0

你需要重新安裝git,它會解決這個問題。

https://git-scm.com/download/win

是作爲

+0

嘗試重新安裝混帳那樣簡單,但於事無補,最終卸載節點JS和Git,並重新安裝和工作 –

+0

所以其現在的工作適合你? – CodeWizard

+0

是的。謝謝。 –

相關問題