查看当前镜像源地址

    1. npm get registry


    设置为淘宝镜像源

    1. npm config set registry https://registry.npm.taobao.org

    还原配置

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