VS2015 after upgrading Update2 Cordova program Tip: This application cannot be run on this computer

Source: Internet
Author: User

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

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.