2014-04-30 92 views
1

当我尝试添加插件Android平台,它抛出下面的错误,不知道什么是错的,以前添加插件工作正常..科尔多瓦/ PhoneGap的添加插件失败

更新科尔多瓦到3.4后也试过。 0

错误:无法获取包信息org.apache.cordova.file

> cordova plugin add org.apache.cordova.file 
Fetching plugin "org.apache.cordova.file" via plugin registry 
**Error: Failed to fetch package information for org.apache.cordova.file** 
    at C:\Users\hank\AppData\Roaming\npm\node_modules\cordova\node_modules\plugman\src 
\registry\registry.js:32:20 
    at Request.cb [as _callback] (C:\Users\hank\AppData\Roaming\npm\node_modules\cordo 
va\node_modules\plugman\src\registry\registry.js:251:9) 
    at self.callback (C:\Users\hank\AppData\Roaming\npm\node_modules\cordova\node_modu 
les\plugman\node_modules\request\index.js:148:22) 
    at Request.EventEmitter.emit (events.js:117:20) 
    at ClientRequest.self.clientErrorHandler (C:\Users\hank\AppData\Roaming\npm\node_m 
odules\cordova\node_modules\plugman\node_modules\request\index.js:257:10) 
    at ClientRequest.EventEmitter.emit (events.js:95:17) 
    at Socket.socketErrorListener (http.js:1547:9) 
    at Socket.EventEmitter.emit (events.js:95:17) 
    at net.js:441:14 
    at process._tickCallback (node.js:415:13) 

回答

1

你试过:

cordova add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git

如果这不起作用,请尝试删除插件文件夹的内容,然后再次运行上面的命令。

+0

你需要添加插件那里,科尔多瓦插件添加https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git – fedmich

相关问题