【问题标题】:Get Apache Cordova Working On Visual Studio 2017让 Apache Cordova 在 Visual Studio 2017 上运行
【发布时间】:2017-05-21 07:08:33
【问题描述】:

没有更改的示例项目无法在我安装的 VS2017 上构建。 (例如,归档新的 apache cordova 应用程序...然后运行)

我在 VMWARE 中使用 VS,但这应该没什么区别。我在运行项目时遇到不同的错误。例如我运行并得到:

2>assert.js:90
2>throw new assert.AssertionError({
2>**Node process unexpectedly exited while waiting for property 'appUrl'.**
2>assert.js:90
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

然后在没有任何变化的情况下,如果我再次运行,我有时会得到一个缺少路径的错误。

assert.js:90
throw new assert.AssertionError({
AssertionError: missing path
at Module.require (module.js:351:3)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\ProgramData\Microsoft\VisualStudio\MDA\cb54b8fa\taco-toolset-6.3.1\simulate.js:15:13)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

当我从构建菜单中尝试浏览器中的模拟选项时会发生这种情况。 我似乎无法为此找到解决方案。我试过了

  1. 从 Visual Studio 工具中清除 Cordova 缓存 -> 选项菜单
  2. 重新安装和/或部分 Visual Studio,包括 taco 工具
  3. 将 VS 2017 升级到最新版本
  4. 完全修复 Visual Studio 安装
  5. 将 VMWARE 升级到最新补丁(我绝望了)

如果我尝试使用 Google Emulator - Phone build 选项,则会收到不同的错误

严重性代码描述项目文件行抑制状态 错误错误:找不到目标“Phone_armeabi-v7a_ToolsForApacheCordova”,无法运行项目 BlankCordovaApp4

在智慧尽头,我怎样才能让它工作?它可能会丢失什么路径?我什至在我的硬盘上找不到 modules.js 文件。

【问题讨论】:

    标签: cordova visual-studio-cordova


    【解决方案1】:

    终于找到了解决办法。使用 Visual Studio 安装程序,我安装了 node.js 选项。不需要,因为它是一个单独的依赖项,并且当您安装移动开发选项时无论如何都会安装 node.js.. 但无论出于何种原因解决了这个问题,看起来 VS 尽管重新安装了移动开发,但还是陷入了混乱完全重新配对整个 vs 安装.. :(

    【讨论】:

      猜你喜欢
      • 2019-03-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-20
      • 2019-04-04
      • 1970-01-01
      • 2018-06-03
      • 1970-01-01
      • 2018-08-14
      相关资源
      最近更新 更多