设置npm源地址(淘宝镜像地址)

    xiaoxiao2022-07-04  208

    查看当前源地址

    npm config get registry

    修改淘宝镜像地址

    npm config set registry http://registry.npm.taobao.org/

    还原默认镜像地址

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

    最新回复(0)