npm 中国源

华为镜像

npm config set registry https://mirrors.huaweicloud.com/repository/npm/
  1. npm –registry https://registry.npm.taobao.org install express
    2、持久使用
  2. npm config set registry https://registry.npm.taobao.org
  3. // 配置后可通过下面方式来验证是否成功
  4. npm config get registry
  5. // 或
  6. npm info express
  7. 3、通过cnpm使用
  8. npm install -g cnpm –registry=https://registry.npm.taobao.org
  9. // 使用
  10. cnpm install express

 

发表回复

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