cordova安装插件的时候提示: “git” command line tool is not installed: make sure it is accessible on your PATH.

使用cordova plugin add命令安装插件的时候提示:  “git” command line tool is not installed: make sure it is accessible on your PATH. 因为项目需要该插件,所以只好来解决这个问题。

第一步: 查看问题

1. 使用cordova plugin add命令安装插件:

cordova plugin add https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git

20160214160911

2. 提示错误

"git" command line tool is not installed: make sure it is accessible on your PATH.

20160214161037

第二步: 安装git

1. git-scm官网

20160214161353

2. 下载Git

20160214161505

3. 安装git

20160214161630

20160214161927

20160214162032

第三步: 重新打开命令窗口再次通过cordova plugin add安装插件

需要重新打开命令窗口。

20160214162311 20160214162321

Author: jhonse

Jhonse技术博客: http://blog.jhonse.com

Leave a Reply

Your email address will not be published. Required fields are marked *