VS2015 after upgrading to Update2, it is possible to see the following exception, prompting you to run the Cordova project:
Viewing the output panel will have garbled error message:
This problem occurs because the NPM program is corrupted. The VS call NPM program is not NPM in the node installation directory, but in:
C:\Users\ User name \appdata\roaming\microsoft\visualstudio\mda\vs-npm\ version number \
When you finish upgrading VS, you will find that Npm.cmd is no longer running. Therefore, when the Cordova project runs, it cannot use NPM to parse the package causing the program to run.
The simplest way to do this is to replace the NPM program with a running NPM.
Copy the NPM program under the node installation directory, and then run the Cordova project again after overwriting the NPM program in this directory.
If you want to upgrade the user, if this problem occurs, hope can help you. Additionally, this issue should not occur if the newly installed Update2 is not upgraded.
VS2015 after upgrading Update2 Cordova program Tip: This application cannot be run on this computer