VS2015 after you upgrade to Update2, you may receive the following exception, which prompts you when you run the Cordova project:
There are garbled error messages to view the output panel:
This problem occurs because the NPM program is corrupted. The VS-invoked NPM program is not NPM under the node installation directory, but is:
C:\Users\username\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\version number\
After you upgrade VS, you will find that Npm.cmd has not started running. Therefore, when the Cordova project is running, it is not possible to use NPM to resolve the package causing the program to run.
The easiest way to solve this problem is to replace the NPM program with a running NPM.
Copy the NPM program under the node installation directory, and then rerun the Cordova project after overwriting the NPM program in this directory.
Users who want to upgrade, if this problem occurs, hope to help you. In addition, if the newly installed Update2 is not upgraded, this problem should not occur.