Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the exception when VS2015 runs the Cordova project after upgrading to Update2?

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "how to solve the exception when VS2015 runs the Cordova project after upgrading to Update2", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the exception when VS2015 runs the Cordova project after upgrading to Update2.

After VS2015 has been upgraded to Update2, the following exception may occur, which prompts you when running the Cordova project:

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 npm in the node installation directory, but in:

C:\ Users\ user name\ AppData\ Roaming\ Microsoft\ VisualStudio\ MDA\ vs-npm\ version number\

After upgrading VS, you will find that npm.cmd can no longer start up and run. So when the Cordova project is running, the inability to use npm to parse the package causes the program to fail to run.

The easiest way to solve the problem is to replace the npm program here with a runnable npm.

Copy the npm program in the node installation directory, overwrite the npm program in this directory, and rerun the Cordova project.

At this point, I believe you have a deeper understanding of "how to solve the exception when VS2015 runs the Cordova project after upgrading to Update2". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 253

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report