Phonegap使用命令行工具添加插件 [英] Phonegap adding plugin using command line tool

查看:155
本文介绍了Phonegap使用命令行工具添加插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的phonegap,我通过步骤定义在phonegap官方网站创建项目使用命令行工具( nodejs )。我成功创建项目和添加平台,但

I am new in phonegap, i go through steps define in phonegap official site for creating project using command line tool(nodejs). i success to create project and adding platform but,

在我尝试添加插件时出现以下错误。

following error occur when i am trying to add plugin.

命令:

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git

错误:

[Error: Error fetching plugin: Error: git command line is not installed]

如何解决这个错误,以及如何安装git命令行?

how can i resolve this error and how can i install git command line?

提前感谢。

推荐答案

您可以在 Mac OS X 安装git命令行/git-osx-installer/downloads/detail?name=git-1.8.3.2-intel-universal-snow-leopard.dmg&can=3&q=&sort=-uploaded\">在这里,以及然后尝试再次运行。

对于Windows ,请在 code.google.com/上下载Git p / msysgit
然后:git clone git://project.url.here

You could install git command line for Mac OS X in here, and then try run that again.
For Windows, download Git on code.google.com/p/msysgit.
Then: git clone git://project.url.here

这篇关于Phonegap使用命令行工具添加插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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