1、清空缓存
cnpm cache clean --force
如果是npm清除缓存,则使用 npm cache clean --force
2、重新安装cnpm,并设置淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
3、安装
cnpm install
cnpm cache clean --force
如果是npm清除缓存,则使用 npm cache clean --force
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install