Visual Studio 2015 不适用于 Apache Cordova 工具 [英] Visual Studio 2015 won't work with Tools For Apache Cordova

查看:32
本文介绍了Visual Studio 2015 不适用于 Apache Cordova 工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完整安装了 VS 2015 Enterprise + Tools for Apache Cordova.当我打开或创建任何项目时,它不会构建,甚至不会在运行"按钮上显示 Ripple 模拟器或设备信息.

I did the full installation of VS 2015 Enterprise + Tools for Apache Cordova. When I open or create any project It won't build and even show the Ripple Emulator or Device information on the Run button.

我已经完全重新安装了,但还是一样.

I already did a full reinstall and still the same.

当我点击配置窗口中的依赖项检查按钮时说一切正常.

When I click the Dependency Check button at the Configuration Window says everything is OK.

当我尝试构建时:

npm 错误!Windows_NT 6.3.9600 1> npm 错误!argv节点""C:\Users\%UserProfile%\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js""-g" "安装" "C:\Program Files (x86)\Microsoft Visual Studio14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac" "--loglevel" "warn" 1> npm ERR! node v0.12.2 1> npm ERR! npmv2.12.0 1> npm ERR!undefined 不是函数 1> npm ERR!1>RUNMDAINSTALL : npm ERR!如果需要帮助,可以报这个错误在: 1> npm ERR!https://github.com/npm/npm/issues 1> npm ERR!请在任何支持请求中包含以下文件:1> npm呃!C:\Users\%UserProfile%\Documents\Visual Studio2015\Projects\BlankCordovaApp10\BlankCordovaApp10\npm-debug.log 1>------ npm 安装失败.退出代码:1 1> ------ 软件包安装失败.正在重试... 1> npm WARN 卸载未安装在 C:\Program Files (x86)\nodejs\node_modules: "vs-tac" 1> npm ERR!Windows_NT 6.3.9600 1> npm 错误!argv节点""C:\Users\%UserProfile%\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js""-g" "安装" "C:\Program Files (x86)\Microsoft Visual Studio14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac" "--loglevel" "warn" 1> npm ERR! node v0.12.2 1> npm ERR! npmv2.12.0 1> npm ERR!undefined 不是函数 1> npm ERR!1>RUNMDAINSTALL : npm ERR!如果需要帮助,可以报这个错误在: 1> npm ERR!https://github.com/npm/npm/issues 1> npm ERR!请在任何支持请求中包含以下文件:1> npm呃!C:\Users\%UserProfile%\Documents\Visual Studio2015\Projects\BlankCordovaApp10\BlankCordovaApp10\npm-debug.log 1>------ npm 安装失败.退出代码:1 1> ------ 软件包安装失败.正在重试... 1> npm WARN 卸载未安装在 C:\Program Files (x86)\nodejs\node_modules: "vs-tac" 1>C:\Program文件(x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(287,5):错误:安装本地 npm 包时出错.1>MSBUILD:cordova-build错误 BLD401:错误:BLD00401:找不到模块'C:\Users\%UserProfile%\AppData\Roaming\npm\node_modules\vs-tac\app.js'.请转到工具 --> 选项 --> Apache Cordova 工具 -->Cordova 工具 --> 清除 Cordova 缓存并再次尝试构建.

npm ERR! Windows_NT 6.3.9600 1> npm ERR! argv "node" "C:\Users\%UserProfile%\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "-g" "install" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac" "--loglevel" "warn" 1> npm ERR! node v0.12.2 1> npm ERR! npm v2.12.0 1> npm ERR! undefined is not a function 1> npm ERR! 1>RUNMDAINSTALL : npm ERR! If you need help, you may report this error at: 1> npm ERR! https://github.com/npm/npm/issues 1> npm ERR! Please include the following file with any support request: 1> npm ERR! C:\Users\%UserProfile%\Documents\Visual Studio 2015\Projects\BlankCordovaApp10\BlankCordovaApp10\npm-debug.log 1> ------ npm install failed. Exit code: 1 1> ------ Package installation failed. Retrying... 1> npm WARN uninstall not installed in C:\Program Files (x86)\nodejs\node_modules: "vs-tac" 1> npm ERR! Windows_NT 6.3.9600 1> npm ERR! argv "node" "C:\Users\%UserProfile%\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "-g" "install" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac" "--loglevel" "warn" 1> npm ERR! node v0.12.2 1> npm ERR! npm v2.12.0 1> npm ERR! undefined is not a function 1> npm ERR! 1>RUNMDAINSTALL : npm ERR! If you need help, you may report this error at: 1> npm ERR! https://github.com/npm/npm/issues 1> npm ERR! Please include the following file with any support request: 1> npm ERR! C:\Users\%UserProfile%\Documents\Visual Studio 2015\Projects\BlankCordovaApp10\BlankCordovaApp10\npm-debug.log 1> ------ npm install failed. Exit code: 1 1> ------ Package installation failed. Retrying... 1> npm WARN uninstall not installed in C:\Program Files (x86)\nodejs\node_modules: "vs-tac" 1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(287,5): error : Error installing local npm package. 1>MSBUILD : cordova-build error BLD401: Error : BLD00401 : Could not find module 'C:\Users\%UserProfile%\AppData\Roaming\npm\node_modules\vs-tac\app.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.

========== 构建:0 个成功,1 个失败,0 个最新,0 个跳过 ==========

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

我确实使用配置按钮清理了缓存,但还是一样.当运行 npm 缓存清除 包安装,但运行按钮不显示设备信息,如我之前所说.

I did clean the cache using the Configuration button but still the same. When a run npm cache clear the package install, but the Run Button don't show device information as I said before.

@Subhag Oak 谢谢!这从运行按钮带回了菜单选项,但在我尝试运行/构建时仍然出错:

@Subhag Oak Thank you! This brought back the menu options from Run button, but still errors when I try to Run/Build:

------ npm install of vs-tac@1.0.0 fromC:\程序文件 (X86)\MICROSOFT VISUAL STUDIO14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac 完成.1>MSBUILD:cordova-build 错误 BLD401:错误:BLD00401:找不到模块'C:\Users\FilipeAugusto\AppData\Roaming\npm\node_modules\vs-tac\app.js'.请转到工具 --> 选项 --> Apache Cordova 工具 -->Cordova 工具 --> 清除 Cordova 缓存并再次尝试构建.========== 构建:0 成功,1 失败,0 最新,0 跳过 ==========

------ npm install of vs-tac@1.0.0 from C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac completed. 1>MSBUILD : cordova-build error BLD401: Error : BLD00401 : Could not find module 'C:\Users\FilipeAugusto\AppData\Roaming\npm\node_modules\vs-tac\app.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

推荐答案

我们认为,我们有一个解决方法.您可以尝试以下解决方案:

We think, we have a workaround for this. Can you try the following solution:

  • 关闭所有 VS 实例
  • cd "%localappdata%\Microsoft\Phone Tools"
  • 重命名 CoreCon 文件夹
  • 再次启动 VS.

让我们知道这是否能解决问题?

Let us know if this fixes the issue?

这篇关于Visual Studio 2015 不适用于 Apache Cordova 工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆