2014-04-30 127 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

相關問題