我是phonegap的新手,我按照phonegap官方网站中定义的步骤使用命令行工具创建项目(nodejs)。我成功创建项目并添加平台,但是,
当我尝试添加插件时出现以下错误。
命令 :
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git
error :
[Error: Error fetching plugin: Error: git command line is not installed]
我该如何解决这个错误以及如何安装 git 命令行?
提前致谢。
你可以安装 git 命令行Mac OS X in ,然后再次尝试运行它。
对于 Windows,下载 Gitcode.google.com/p/msysgit http://msysgit.github.io/.
然后: git clone git://project.url.here
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)