问题
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?
Cannot find module './lib/plugin'
回答1:
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.
来源:https://stackoverflow.com/questions/27012221/visual-studio-apache-cordova-build-error-cannot-find-module