加载中...
  • npm,yarn如何查看源和换源

    npm, yarn查看源和换源:

    1
    2
    3
    4
    5
    6
    7
    npm config get registry  // 查看npm当前镜像源

    npm config set registry https://registry.npm.taobao.org/ // 设置npm镜像源为淘宝镜像

    yarn config get registry // 查看yarn当前镜像源

    yarn config set registry https://registry.npm.taobao.org/ // 设置yarn镜像源为淘宝镜像

    镜像源地址部分如下:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    npm --- https://registry.npmjs.org/

    cnpm --- https://r.cnpmjs.org/

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

    nj --- https://registry.nodejitsu.com/

    rednpm --- https://registry.mirror.cqupt.edu.cn/

    npmMirror --- https://skimdb.npmjs.com/registry/

    deunpm --- http://registry.enpmjs.org/

    上一篇:
    linux释放占用端口
    下一篇:
    pm2常用命令
    本文目录
    本文目录