美文网首页
国内npm镜像使用

国内npm镜像使用

作者: 每日陈述 | 来源:发表于2017-11-20 23:23 被阅读7次

    淘宝npm镜像

    cnpmjs镜像

    如何使用

    主要使用方法是配置npm的registry地址,如:

    1.临时使用

    npm --registry https://registry.npm.taobao.org install express
    
    

    2.持久使用(当然是推荐持久使用)

    npm config set registry https://registry.npm.taobao.org
    
    // 配置后可通过下面方式来验证是否成功
    npm config get registry
    // 或
    npm info express
    
    

    相关文章

      网友评论

          本文标题:国内npm镜像使用

          本文链接:https://www.haomeiwen.com/subject/toabvxtx.html