【问题标题】:Error installing cordova plugin from github url (meteor 1.2)从 github url (meteor 1.2) 安装 cordova 插件时出错
【发布时间】:2015-12-23 22:51:35
【问题描述】:

我有一个流星应用程序,它使用了几个从 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

我是不是做错了什么?

【问题讨论】:

    标签: cordova meteor cordova-plugins


    【解决方案1】:

    在当前版本 (1.2.0.1) 中看起来是 a known bug,解决方法是使用 .meteor/cordova-plugins 中的旧格式:

    com.cordova.plugins.sms@https://github.com/cordova-sms/cordova-sms-plugin/tarball/17c4da078f6c0d9f762ac10f5015440ee1c81d07
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-19
      • 1970-01-01
      • 2018-07-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-15
      • 2015-07-27
      相关资源
      最近更新 更多