Home  >  Article  >  Web Front-end  >  npm install unresponsive solution -verbose displays installation details

npm install unresponsive solution -verbose displays installation details

一个新手
一个新手Original
2017-10-16 10:03:142826browse

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

2) Set up the Taobao mirror;

npm 
set registry https://registry.npm.taobao.org

3) After globally downloading and installing the angular cli component

$ npm install -g @angular/cli

, 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

. 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!

Statement:
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