npm源 使用阿里镜像加速

npm默认使用的源是 ttps://registry.npmjs.org/ ,在国内使用,延迟比较大。还可能导致速度非常慢。这个配置可以修改。

查看默认的源

npm config get registry
https://registry.npmjs.org/

使用阿里云的源

npm config  set registry  https://registry.npmmirror.com
npm config get registry

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注