npm淘宝镜像

方法1:

设置npm为淘宝镜像,npm为淘宝镜像

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

恢复npm地址

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

临时使用淘宝镜像

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

方法2:

下载cnpm,npm为原地址,cnpm为淘宝镜像

npm install -g cnpm --registry=https://registry.npm.taobao.org

你可能感兴趣的:(前端软件,npm,淘宝镜像)