Solution for running Cordova project exceptions after upgrading VS2015 to Update2, vs2015cordova
After VS2015 is upgraded to Update2, the following exception may occur. when running the Cordova project, the following error occurs:
Check the output panel for garbled error messages:
This problem occurs because the npm program is corrupted. The npm program called by vs is not the npm program under the node installation directory, but in:
C: \ Users \ User Name \ AppData \ Roaming \ Microsoft \ VisualStudio \ MDA \ vs-npm \ version \
After VS is upgraded, npm. cmd cannot be started. Therefore, when the Cordova project is running, npm cannot be used to parse the package and the program cannot run.
The simplest solution is to replace the npm program with a runable npm.
Copy the npm program in the node installation directory, overwrite the npm program in the directory, and run the Cordova project again.
Users who want to upgrade, if this problem occurs, hope to help you. In addition, if it is a newly installed Update2, it should not be upgraded.