【问题标题】:Can't install Apache Cordova plugins in Visual Studio 2017无法在 Visual Studio 2017 中安装 Apache Cordova 插件
【发布时间】:2018-06-08 02:38:06
【问题描述】:

我在 Visual Studio 2017 中创建了一个非常简单的 Apache Cordova Javascript 项目,然后尝试添加 Core 选项卡上列出的“设备”插件,然后失败并出现此错误:

安装插件'cordova-plugin-device'

您已选择退出遥测。要更改这一点,请运行:cordova telemetry on。

未找到挂钩“before_plugin_add”的脚本。

没有为cordova-plugin-device指定版本,从config.xml中检索版本

在 config.xml 中没有保存 cordova-plugin-device 的版本 尝试使用 npm info for cordova-plugin-device 来选择兼容的版本

完成

错误:无法建立隧道套接字,原因=套接字挂起

【问题讨论】:

    标签: cordova-plugins visual-studio-cordova


    【解决方案1】:

    我遇到了同样的错误,这是因为我放置它的插件的路径太长了。我把它放在 E:/ 驱动器的文件夹中,然后尝试添加它。它被添加了成功了。试试这个。

    【讨论】:

    • 另外,切勿在 Cordova 应用程序中使用带空格的路径。并使用尽可能短的路径,我使用 D:\Cordova 并且所有应用程序都在那里。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-04
    • 1970-01-01
    • 2019-09-04
    • 2023-03-04
    • 1970-01-01
    相关资源
    最近更新 更多