Solution for running Cordova project exceptions after upgrading VS2015 to Update2, vs2015cordova

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.