本文介绍了Visual Studio Apache Cordova构建错误 - 无法找到模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了visual studio apache cordova插件,并开始创建内置的hello world应用程序。但是当我构建我得到这个错误。我看到其他人有同样的问题在MSDN论坛,但没有答案。可以帮助任何人吗?

I have installed visual studio apache cordova plugin and started creating the in built hello world app. but when I build I get this error. I have seen other people have the same issue on MSDN forums but no answer. can anyone help?

无法找到模块'./lib/plugin'

Cannot find module './lib/plugin'

推荐答案

在VSK下清除您的Cordova缓存在Apache Cordova \ Cordova工具的Tools \Options \Tools下。完成后,重新打开您的项目,并尝试一个干净的构建。如果您仍然遇到同样的问题,请检查文件夹%AppData%\Roaming\\\
pm\\\
ode_modules\vs-mda\lib的内容,并回复进一步调查。

Clear your Cordova Cache from within VS under Tools\Options\Tools for Apache Cordova\Cordova Tools. After you have done that, re-open your project and attempt a clean build. If you are still getting the same issue, inspect the contents of the folder %AppData%\Roaming\npm\node_modules\vs-mda\lib and reply back for further investigation.

这篇关于Visual Studio Apache Cordova构建错误 - 无法找到模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 06:10