安装Cordova项目的插件

时间:2014-01-17 07:37:21

标签: android cordova

我正在尝试为我的项目添加一个插件,这是我收到此错误的时候:

PS D:\My Projects\***\trunk\dev> cordova plugin add https://github.com/phonegap-build/GAPlugin.git
Fetching plugin from "https://github.com/phonegap-build/GAPlugin.git"...

C:\Users\***\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:126
                    throw e;
                          ^
Error: Fetching plugin failed: Error: "git" command line tool is not installed: make sure it is accessible on your PATH.
    at C:\Users\***\AppData\Roaming\npm\node_modules\cordova\src\plugin.js:90:41
    at _rejected (C:\Users\***\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:24)
    at C:\Users\***\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:834:30
    at Promise.when (C:\Users\***\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1079:31)
    at Promise.promise.promiseDispatch (C:\Users\***\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:752:41)
    at C:\Users\***\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:574:44
    at flush (C:\Users\***\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
    at process._tickCallback (node.js:415:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)

D:\My Projects\***\trunk\dev”内容已由“cordova create . <project-name>”和“cordova platform add android”命令创建。 我已经从http://msysgit.github.io/安装了Git,它可以在C:\Program Files (x86)\Git中找到。

我想念什么?

0 个答案:

没有答案