当前位置 博文首页 > Stefan的博客:npm 更改 阿里镜像源 方法

    Stefan的博客:npm 更改 阿里镜像源 方法

    作者:[db:作者] 时间:2021-07-21 19:15

    Node 的官方模块仓库网速太慢,模块仓库切换到阿里的镜像。

    查看本地镜像源

    npm config get registry 
    

    执行以下命令更改:

    npm config set registry https://registry.npm.taobao.org --global
    
    npm config set disturl https://npm.taobao.org/dist --global
    

    或者使用

    npm config set registry https://registry.npm.taobao.org/
    
    cs
    下一篇:没有了