安装 Visual Studio 工具后 windows 上的 Cordova 命令行

Cordova command line on windows after Visual Studio tools installed

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

I would like to be able to build existing Cordova apps outside of Visual Studio, but I can't find the Cordova command line interface. Should I install Cordova again using npm? Will that break the builds for projects created with Visual Studio?

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

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