无法在VS 2015中构建我的第一个CORDOVA应用程序 [英] UNABLE TO BUILD MY FIRST CORDOVA APP IN VS 2015

查看:66
本文介绍了无法在VS 2015中构建我的第一个CORDOVA应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 

我昨天安装了VS 2015。它在MSDN中提到VS将自动安装所有必需的库和JS文件。安装完成后,我试图建立我的第一个项目,得到错误。此外,我无法下载任何扩展名
,因为它显示"无法下载插件"。 

I have installed VS 2015 yesterday. It has mentioned in MSDN that VS will automatically install all the required library and JS files. After installation when i tried to build my very first project, got error. Also i am not able to download any extension as it says "Couldn't download plugin". 

错误: 

1> ------ Rebuild All started:Project:BlankCordovaApp1,Configuration:Debug Android ------
$
1>  您的环境已设置为使用Node.js 0.12.2(ia32)和npm。

1>   ------确保从源包目录正确全局安装包:C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages \\ \\ vs-tac

1>   ------来自source package.json的名称:vs-tac

1>   ------源码包的版本.json:1.0.0

1>   ------目前尚未全球安装的套餐。

1>   ------从源包全局安装。这可能需要几分钟...

1> ------ npm安装错误:错误:spawn cmd ENOENT

1> MSBUILD:cordova-build错误BLD401:错误:BLD00401:找不到模块'C:\Users\ashu\AppData \Roaming\\\
pm\\\
ode_modules \vs-tac \ app.js'。请转到工具 - >选项 - >用于Apache Cordova的工具 - > Cordova工具 - >清除Cordova Cache
并再次尝试构建。
$
==========重建全部:0成功,1失败,0跳过========= =

1>------ Rebuild All started: Project: BlankCordovaApp1, Configuration: Debug Android ------
1>  Your environment has been set up for using Node.js 0.12.2 (ia32) and npm.
1>  ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
1>  ------ Name from source package.json: vs-tac
1>  ------ Version from source package.json: 1.0.0
1>  ------ Package not currently installed globally.
1>  ------ Installing globally from source package. This could take a few minutes...
1>------ npm install error : error : spawn cmd ENOENT
1>MSBUILD : cordova-build error BLD401: Error : BLD00401 : Could not find module 'C:\Users\ashu\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.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

请建议我如何解决此问题。 

Please suggest me how to fix this issue. 

推荐答案

看看这里:

https://msdn.microsoft .com / library / dn771551%20(v = vs.140).aspx #vstac

https://msdn.microsoft.com/library/dn771551%20(v=vs.140).aspx#vstac

总结:

查看全局节点模块,可能是这样的地方:

Look at your global node modules, probably somewhere like this:

C:\ Users \ [you_user_folder] \ AppData\Roaming\\\
pm\\\
ode_modules

C:\Users\[you_user_folder]\AppData\Roaming\npm\node_modules

并查看是否有vs-tac文件夹,如果没有安装它:

and see if there is a vs-tac folder, if not install it:

npm install -g <path-to-vs-tac>

其中<路径到VS-TAC>很可能 C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac

Clear the cache as the error you posted instructed you to do (Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache)

我希望这会有所帮助,它解决了同样的问题我刚才。

I hope this helps, it solved the same problem for me just now.


这篇关于无法在VS 2015中构建我的第一个CORDOVA应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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