我已经苦思冥想了一段时间。我正在使用 Cordova 3.4
在 Windows 7
上开发一个 Android
应用,但是我无法安装任何非核心插件(如 Google Analytics
、Social Share
)。我知道我已经安装了 plugman、node、git、cordova 和 CLI,因为当我在命令提示符中键入它们时,我会得到一个有效的响应。Android SDK 正常工作,我已经更新了所有这些模块并尝试重新安装。以下是我在尝试安装不属于 Cordova 核心的插件时收到的错误:
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
我想知道这是否是一个路径问题,尽管我已经尝试了很多与此相关的解决方案。非常感谢您的建议和指导。谢谢!