无限星辰工作室-客户无限互联网动力之源

标题: npm使用国内镜像的方法 [打印本页]

作者: crx349    时间: 2019-8-14 13:59
标题: npm使用国内镜像的方法

1. 命令

  1. npm config set registry https://registry.npm.taobao.org
复制代码

2. 验证命令

  1. npm config get registry
复制代码

如果返回
  1. https://registry.npm.taobao.org
复制代码
,说明镜像配置成功。

国外源:
  1. https://registry.npmjs.org/
复制代码





欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://www.xmspace.net/) Powered by Discuz! X3.4