Cordova应用程序构建错误 [英] Cordova application build error
本文介绍了Cordova应用程序构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们在重新构建cordova应用程序时遇到错误,我们还尝试了警告消息清除缓存活动,但仍然面临问题.
We are getting below error while Re-build cordova application, we also tried warning message clear cache activity but still facing issue.
严重性代码描述项目文件行抑制状态 错误BLD401错误:BLD00401:找不到模块'.. \ node_modules \ vs-tac \ app.js '.请转到工具->选项-> Apache Cordova的工具-> Cordova工具->清除Cordova缓存,然后尝试再次构建.
Severity Code Description Project File Line Suppression State Error BLD401 Error : BLD00401 : Could not find module '..\node_modules\vs-tac\app.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.
推荐答案
我们已通过以下步骤解决了此问题.
We have fixed this issue with below steps.
- 转到-> C:\ Users [您的用户名] \ AppData \ Roaming \ npm \ node_modules
- 已删除-> vs-tac文件夹
- 打开命令提示符并运行: npm install -g"C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ ApacheCordovaTools \ packages \ vs-tac"
- 经过重新构建的清洁解决方案
- Got to--> C:\Users[your user name]\AppData\Roaming\npm\node_modules
- Removed--> vs-tac folder
- open command prompt and run: npm install -g "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac"
- Cleaned solution with re-build
这篇关于Cordova应用程序构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文