将Cordova插件更新为特定版本

时间:2014-06-12 16:01:37

标签: cordova cordova-plugins

刚刚升级到Cordova 3.4。

尝试将插件更新为某个版本

使用Cordova cli

  

cordova插件添加org.apache.cordova.inappbrowser@0.4.0

Fetching plugin "org.apache.cordova.inappbrowser@0.4.0" via plugin registry Error: Failed to fetch package information for org.apache.cordova.inappbrowser at /usr/local/lib/node_modules/cordova/node_modules/plugman/src/registry/registry.js:32:20 at Request.cb [as _callback] (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/registry/registry.js:251:9) at self.callback (/usr/local/lib/node_modules/cordova/node_modules/plugman/node_modules/request/index.js:148:22) at Request.EventEmitter.emit (events.js:117:20) at ClientRequest.self.clientErrorHandler (/usr/local/lib/node_modules/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)

是否有其他方法可以将插件更新为某个版本?

1 个答案:

答案 0 :(得分:1)

你快到了。使用#而不是@。你这样做的方式是:

cordova plugin add git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git#rOLDERVERSION

根据Cordova Web Site