【问题标题】:Cordova command line on windows after Visual Studio tools installed安装 Visual Studio 工具后 Windows 上的 Cordova 命令行
【发布时间】:2016-11-17 09:51:19
【问题描述】:

我安装了支持使用 Apache Cordova 构建应用程序的 Visual Studio 2015。我希望能够在 Visual Studio 之外构建现有的 Cordova 应用程序,但我找不到 Cordova 命令行界面。我应该使用 npm 再次安装 Cordova 吗?这会破坏使用 Visual Studio 创建的项目的构建吗? VS 安装了 node.js,所以 npm 提示有效。顺便说一句,我是 Cordova 的新手。

【问题讨论】:

    标签: cordova visual-studio-cordova


    【解决方案1】:

    我希望能够在 Visual Studio 之外构建现有的 Cordova 应用程序,但我找不到 Cordova 命令行界面。我应该使用 npm 再次安装 Cordova 吗?这会破坏使用 Visual Studio 创建的项目的构建吗?

    答案是肯定的,您可以使用 npm 再次安装 Cordova,这不会破坏 Visual Studio 创建的项目的构建。

    还有一点需要注意,你需要全局安装cordova命令行工具:npm install -g cordova。

    【讨论】:

    • 另外:为确保您在 Visual Studio 中获得相同的构建体验,请进入配置设计器并选中告诉 VS 使用全局版本的 Cordova 的框。这样,VS 工具将使用您的 CLI 使用的同一个全局安装版本的 Cordova。
    猜你喜欢
    • 2019-04-02
    • 1970-01-01
    • 2018-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-02
    相关资源
    最近更新 更多