Cordova 3.0 Plugin 安裝 及"git" command line tool is not installed

根據http://docs.phonegap.com/en/edge/guide_cli_index.md.html#The%20Command-line%20Interfacehtml

Windows命令行進入項目目錄後,安裝Plugin使用命令:
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
不過對於Corova,應該是:
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.gitgit

可是提示錯誤:github

[Error: Error fetching plugin: Error: "git" command line tool is not installed:
make sure it is accessible on your PATH.]apache

須要安裝Git,參考:
https://help.github.com/articles/set-up-gitwindows

可是下載時http://git-scm.com/downloads有牆,搜到:http://www.noanylove.com/2011/11/to-use-the-git-in-the-windows/app

下載地址是:https://code.google.com/p/msysgit/downloads/list?q=full+installer+official+gitide

安裝Git時,我選了「Run Git from the Windows Command Prompt」,直接把Git路徑設置好。fetch

從新打開命令行窗口再試cordova plugin add就能夠了。ui

相關文章
相關標籤/搜索