npm淘宝镜像源换新地址
新的淘宝npm镜像源地址:https://registry.npmmirror.com
切换新的镜像源
npm config set registry https://registry.npmmirror.com
然后再执行以下操作查看是否成功
npm config list
如果没安装过淘宝镜像源的,则直接安装
npm install -g cnpm --registry=https://registry.npmmirror.com
新的淘宝npm镜像源地址:https://registry.npmmirror.com
切换新的镜像源
npm config set registry https://registry.npmmirror.com
然后再执行以下操作查看是否成功
npm config list
如果没安装过淘宝镜像源的,则直接安装
npm install -g cnpm --registry=https://registry.npmmirror.com