2021-02-03
阅读:288
因为npm服务器在国外的原因,导致我们在开发过程中使用npm下载一些第三方包的时候很慢,或者会下载失败,在使用中配置为淘宝镜像可方便的解决这个问题
npm config set registry https://registry.npm.taobao.org/
--registry=https://registry.npm.taobao.org
//例如
npm install axios --registry=https://registry.npm.taobao.org
npm config get registry