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 thecordova 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 theEmphasis: 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 appletWhen select is not used How to implement the drop-down box function under vueThe 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!