发布添加媒体插件与chrome移动应用程序(cca),非常近期

时间:2015-04-04 05:14:24

标签: cordova google-chrome-app cordova-chrome-app

直到两天前我才用cca安装插件,直到今天。当我去添加cordova媒体插件时,我通常在终端中使用此命令:

cca plugin add https://github.com/apache/cordova-plugin-media

我收到此错误:

Failed to install 'cordova-plugin-media':Error: 404 Not Found: cordova-plugin-file
at RegClient.<anonymous> (/usr/local/lib/node_modules/cca/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:14)
at Request.self.callback (/usr/local/lib/node_modules/cca/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:148:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/usr/local/lib/node_modules/cca/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:876:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/cca/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:827:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)

Error: 404 Not Found: cordova-plugin-file
at RegClient.<anonymous> (/usr/local/lib/node_modules/cca/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:14)
at Request.self.callback (/usr/local/lib/node_modules/cca/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:148:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/usr/local/lib/node_modules/cca/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:876:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/cca/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:827:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)

我没有改变任何东西,它因某种原因停止了工作。关于为什么会发生这种情况的任何想法?我在这里很困惑。我整个星期都在使用这个命令将插件添加到各个项目中,就在今天它被打破了。

1 个答案:

答案 0 :(得分:1)

请使用此格式代替cordova plugin add org.apache.cordova.media