无法从混帐的CLI安装科尔多瓦插件 [英] Can't install Cordova plugins from Git on CLI

查看:241
本文介绍了无法从混帐的CLI安装科尔多瓦插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在货架我的大脑对这个有一段时间了。我正在开发的科尔多瓦3.4 Windows 7的安卓应用>我不能得到任何非核心插件的安装(如谷歌Analytics(分析)社会共享) 。我知道我有plugman,节点,混帐,科尔多瓦和CLI安装,因为当我输入他们进入命令提示符我得到一个有效的响应。 Android的SDK是工作,我已经更新了所有这些模块,并试图重新安装。这是我收到的错误,当我尝试安装一个插件,不科尔多瓦核心的组成部分:

I have been racking my brain on this for a while now. I am developing an Android app on Windows 7 in Cordova 3.4 and I can't get any of the non-core plugins to install (like Google Analytics, Social Share). I know that I have plugman, node, git, cordova, and the CLI installed because when I type them into a command prompt I get back a valid response. The Android SDK is working, and I have updated all of these modules and tried re-installing. Here is the error I receive when I try to install a plugin that is not part of Cordova core:

C:\Users\UserName\Desktop\hello>cordova plugin add https://github.com/danwilson/google-analytics-plugin.git
Fetching plugin "https://github.com/danwilson/google-analytics-plugin.git" via git clone
Error: Command failed: fatal: could not create work tree dir 'C:\Users\DAVIDH~1\AppData\Local\Temp\plugman\git\1397683376354'.: No such file or directory

我不知道这是一个路径问题或没有,虽然我曾尝试与此相关的许多解决方案。您的建议和指导,大大AP preciated。谢谢!

I'm wondering if this is a PATH issue or not, though I have tried many solutions related to this. Your advice and guidance is greatly appreciated. Thanks!

推荐答案

这似乎没有在Windows上的Git源的依赖关系的错误。

It seems there is a bug in git source dependencies on Windows.

尝试手动创建目录:

mkdir C:\Users\DAVIDH~1\AppData\Local\Temp\plugman\git

然后:

git clone https://github.com/danwilson/google-analytics-plugin.git

从那里: https://github.com/sbt/sbt/issues/895

修改

我去掉了数字扩展,这是不需要的,遵循从FugueWeb此言

I removed the numerical extension, which is not needed, to follow the remark from FugueWeb

更新(从2014年9月)

作为达人比尔的回答,并在上面链接的问题指出,这种错误在Git的1.9.4。下载GIT for Windows的最新版本应该解决这个问题。

As noted in Daren Beale's answer and also in the issue linked above, this bug is fixed in Git 1.9.4. Downloading the latest version of GIT for Windows should get around this problem.

这篇关于无法从混帐的CLI安装科尔多瓦插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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