我刚刚创建了一个测试cordova项目,现在正在尝试在我的项目中添加一个简单的Push Notification (https://github.com/phonegap-build/PushPlugin)。
我按照它的指示打了这个字:
cordova plugin add https://github.com/phonegap-build/PushPlugin.git但是,命令行立即失败,出现了以下错误消息:
F:\Workplace\pushnotification\pushnotification>cordova plugin add https://github.com/phonegap-build/PushPlugin.git
Fetching plugin "https://github.com/phonegap-build/PushPlugin.git" via git clone
Error: Command failed: fatal: could not create work tree dir 'C:\Users\FRANV_~1\AppData\Local\Temp\plugman\git\1398870928641'.: No such file or directory
at ChildProcess.exithandler (child_process.js:637:15)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)我只是做了更新我的乌龟GitHub,但它没有解决问题。
发布于 2014-04-30 15:33:14
在Windows上的git源代码依赖项中似乎存在一个bug。
尝试手动创建目录:
mkdir C:\Users\FRANV_~1\AppData\Local\Temp\plugman\git\1398870928641然后:
cordova plugin add https://github.com/phonegap-build/PushPlugin.githttps://stackoverflow.com/questions/23392136
复制相似问题