从github url安装cordova插件时出错(meteor 1.2)

时间:2015-09-26 03:58:16

标签: cordova meteor cordova-plugins

我有一个流星应用程序,它使用从github安装的几个cordova插件(因为它们不在注册表中)。应用程序在1.1.0.3下工作正常,但在流星1.2中,当我尝试运行应用程序时出现错误。

按照更新的instructions,我尝试删除并重新添加插件,如下所示:

meteor add cordova:com.cordova.plugins.sms@https://github.com/cordova-sms/cordova-sms-plugin.git#17c4da078f6c0d9f762ac10f5015440ee1c81d07

引用的提交存在,但是当我运行meteor run android-device时,我收到此错误:

npm ERR! addLocal Could not install /var/folders/5x/mffg5c9j3_1c6cbst5p82tkr0000gn/T/npm-2296-a0ad1527/git-cache-f63007629e41/03fe48b62411cbff22229ca13cc3ac8b282f7945
npm ERR! addLocal Could not install /var/folders/5x/mffg5c9j3_1c6cbst5p82tkr0000gn/T/npm-2296-a0ad1527/git-cache-739cb14fc690/03fe48b62411cbff22229ca13cc3ac8b282f7945
=> Errors executing Cordova commands:                                              

   While adding plugin com.verso.cordova.clipboard@https://github.com/VersoSolutions/CordovaClipboard.git to Cordova project:
   Cordova error: Failed to fetch plugin com.verso.cordova.clipboard@https://github.com/VersoSolutions/CordovaClipboard.git via
   registry.
   Probably this is either a connection problem, or plugin spec is incorrect.
   Check your connection and plugin name/version/URL.
   Error: EISDIR, read
   (If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration. You can try
   running again with the --verbose option to help diagnose the issue.)

ExitWithCode:1

我做错了吗?

1 个答案:

答案 0 :(得分:0)

在当前版本(1.2.0.1)中看起来像a known bug,解决方法是使用com.cordova.plugins.sms@https://github.com/cordova-sms/cordova-sms-plugin/tarball/17c4da078f6c0d9f762ac10f5015440ee1c81d07 中的旧格式:

Error:(42, 29) error: no suitable constructor found for User(int) constructor User.User(String,String) is not applicable (actual and formal argument lists differ in length) constructor User.User(String,String,int,int,String,String) is not applicable (actual and formal argument lists differ in length)