查看当前镜像
npm config get registry
安装cnpm对应淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
切换到原生镜像
npm config set registry https://registry.npmjs.org
清除缓存
npm cache clean --force
查看当前镜像
npm config get registry
安装cnpm对应淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
切换到原生镜像
npm config set registry https://registry.npmjs.org
清除缓存
npm cache clean --force
本文标题:cnpm 安装
本文链接:https://www.haomeiwen.com/subject/pkggertx.html
网友评论