zoukankan      html  css  js  c++  java
  • JavaScript 使用yrm修改镜像源

    安装yrm

    npm install -g yrm
    

    列出当前可用的镜像源

    # yrm ls
        npm -----  https://registry.npmjs.org/
        cnpm ----  http://r.cnpmjs.org/
        taobao --  https://registry.npm.taobao.org/
        nj ------  https://registry.nodejitsu.com/
        rednpm -- http://registry.mirror.cqupt.edu.cn
        skimdb -- https://skimdb.npmjs.com/registry
        yarn ----  https://registry.yarnpkg.com
    

    切换镜像源

    yrm use taobao
    

    测试速度

    yrm test taobao
    

    全局修改镜像源

    yarn config set registry https://registry.npm.taobao.org/
    yarn config set registry https://registry.yarnpkg.com
    # 提交到 npmjs package之前要执行
    yarn config set registry http://registry.npmjs.org/
    
    Keep learning
  • 相关阅读:
    匿名方法
    C# 正则表达式
    c# 预处理命令
    反射
    特性(attribute)
    c# 交换两个变量
    构造函数
    泛型
    Event事件
    委托
  • 原文地址:https://www.cnblogs.com/leslie1943/p/13383732.html
Copyright © 2011-2022 走看看