Home > Web Front-end > JS Tutorial > body text

How to deal with nodejs npm command unresponsive

php中世界最好的语言
Release: 2018-05-29 10:04:54
Original
1412 people have browsed it

This time I will show you how to deal with the unresponsive npm command of nodejs. What are the precautions for dealing with the unresponsive npm command of nodejs? The following is a practical case, let's take a look. I have been working on cordova recently, and I have to toss nodejs again.

Today

When I installed the

cordova module, I saw that the default module installation path of nodejs was on the c driveSo I wanted to modify it and press the command npm config set prefix.

The result was that I ran into a trap. After that, my npm command was completely unresponsive. It was not the

state of loading

, but the subscript kept flashing somewhere. ..

After that I looked for a solution and said that I had to

delete the

npmrc file.

Emphasis: is not the npmrc file under the npm module in the nodejs installation directory but under C:\Users\{Account}\ The .npmrc file....

ok, you can use the npm command.

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

How to implement a custom multi-select event in WeChat applet


When select is not used How to implement the drop-down box function under vue

The above is the detailed content of How to deal with nodejs npm command unresponsive. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template