npm/cnpm 设置镜像地址

作者: 后除 | 来源:发表于2022-05-28 22:00 被阅读0次

    npm

    查看当前镜像源:

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

    修改当前镜像源:

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

    cnpm

    安装 cnpm:

    npm install cnpm -g
    

    查看当前镜像源:

    cnpm config get registry
    
    # https://registry.npm.example.com
    

    修改当前镜像源:

    cnpm config set registry https://registry.npm.example.com
    

    版权声明

    本博客所有的原创文章,作者皆保留版权。转载必须包含本声明,保持本文完整,并以超链接形式注明作者后除和本文原始地址:https://blog.mazey.net/2833.html

    (完)

    相关文章

      网友评论

        本文标题:npm/cnpm 设置镜像地址

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