【问题标题】:Cannot install Cordova Fullscreen plugin, platform=Windows 10无法安装 Cordova 全屏插件,平台=Windows 10
【发布时间】:2018-05-21 01:39:47
【问题描述】:

我正在使用 Cordova 为桌面创建通用 Windows 10 应用程序。我在https://www.npmjs.com/package/cordova-fs-plugin-fullscreen 安装全屏插件时遇到问题。我使用 CLI 和 cd 到我的项目文件夹。当我使用 CLI 安装插件时,我收到以下错误:

“错误:无法通过注册表获取插件https://github.com/filfat-Studios-AB/cordova-plugin-fullscreen。 这可能是连接问题,或者插件规范不正确。 检查您的连接和插件名称/版本/URL。 获取已安装模块的绝对路径失败”

只要互联网连接正常,这不是连接问题。请指教。

【问题讨论】:

    标签: windows cordova plugins fullscreen


    【解决方案1】:

    尝试使用--nofetch 选项。

    cordova plugin add your_plugin_url --nofetch
    

    在你的情况下,它将是:

    cordova plugin add https://github.com/filfat-Studios-AB/cordova-plugin-fullscreen --nofetch
    

    但是,请确保您使用的是 Cordova 7.x.x。

    --nofetch 选项在 Cordova 8.0.0 中被删除。

    【讨论】:

      猜你喜欢
      • 2020-06-22
      • 1970-01-01
      • 2016-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-29
      • 2016-04-07
      • 1970-01-01
      相关资源
      最近更新 更多