Front-end initialization project switching mirror command

If you do not switch to a domestic image, it is easy to occur: idealTree:moni: sill idealTree buildDeps keeps getting stuck.

The command is as follows:

1. npm config get registry to view the current mirror address 

2. Appearance   

https://registry.npmjs.org/  

means abroad

3. Use the following command to switch to the domestic Alibaba address

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

4. Check whether the switch is successful

npm config get registry  
 

Guess you like

Origin blog.csdn.net/shi450561200/article/details/134277782