Cordova应用程序构建错误 [英] Cordova application build error

查看:98
本文介绍了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.

  1. 转到-> C:\ Users [您的用户名] \ AppData \ Roaming \ npm \ node_modules
  2. 已删除-> vs-tac文件夹
  3. 打开命令提示符并运行: npm install -g"C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ ApacheCordovaTools \ packages \ vs-tac"
  4. 经过重新构建的清洁解决方案
  1. Got to--> C:\Users[your user name]\AppData\Roaming\npm\node_modules
  2. Removed--> vs-tac folder
  3. open command prompt and run: npm install -g "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac"
  4. Cleaned solution with re-build

这篇关于Cordova应用程序构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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