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

npm install unresponsive solution -verbose displays installation details

一个新手
Release: 2017-10-16 10:03:14
Original
2849 people have browsed it

Configure the angular development environment at home and follow the process

1) Download the node installation file and check the node npm version;

$ node --versionv7.6.0
$ npm -version4.1.2
Copy after login

2) Set up the Taobao mirror;

npm 
set registry https://registry.npm.taobao.org
Copy after login

3) After globally downloading and installing the angular cli component

$ npm install -g @angular/cli
Copy after login

, the cursor always displays the input status. After waiting for a few minutes, there is still no information at all and no error message. After a few days of google searching, I still couldn't find a solution. Later, I accidentally discovered that npm also has a parameter that can display detailed installation information - verbose

$ npm install @angular/cli -g -verbose --registry=https://registry.npm.taobao.org
Copy after login

. After looking at the detailed output, I found that there were too many things to install, the network speed was too slow, and the installation time was relatively long. But the process is fine. If you encounter other problems, you can easily solve them according to the detailed log output. What I fear most is the sudden silence in the air, without any error message.

If there is an error in other npm commands later, you can also add the -verbose parameter to view the error details, and then do the corresponding processing based on the specific information

-g Globally installed modules and maven The warehouse is also in the personal directory C:\Users\ance\AppData\Roaming\npm

The above is the detailed content of npm install unresponsive solution -verbose displays installation details. 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