How to change npm to Taobao mirror

1. Temporarily use the specified image on the command line (Taobao)

npm --registry https://registry.npm.taobao.org install express

2. Permanently change the command line to use the specified image (Taobao)

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

In the future, npm install express will use the specified (Taobao) image by default

Guess you like

Origin blog.csdn.net/jiangchuan465/article/details/128274424