首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能将推送通知插件添加到cordova中

未能将推送通知插件添加到cordova中
EN

Stack Overflow用户
提问于 2014-04-30 15:26:07
回答 1查看 1.3K关注 0票数 2

我刚刚创建了一个测试cordova项目,现在正在尝试在我的项目中添加一个简单的Push Notification (https://github.com/phonegap-build/PushPlugin)。

我按照它的指示打了这个字:

代码语言:javascript
复制
cordova plugin add https://github.com/phonegap-build/PushPlugin.git

但是,命令行立即失败,出现了以下错误消息:

代码语言:javascript
复制
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,但它没有解决问题。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-04-30 15:33:14

在Windows上的git源代码依赖项中似乎存在一个bug。

尝试手动创建目录:

代码语言:javascript
复制
mkdir C:\Users\FRANV_~1\AppData\Local\Temp\plugman\git\1398870928641

然后:

代码语言:javascript
复制
cordova plugin add https://github.com/phonegap-build/PushPlugin.git
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23392136

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档