VS2015 practical tips for running a Cordova project exception after upgrading to Update2

Source: Internet
Author: User

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.

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.