安装cnpm失败

发生npm WARN deprecated [email protected]: request has been deprecated,的错误解决方法

1.降低npm版本
npm install [email protected] -g
2.淘宝镜像安装cnpm
npm set registry https://registry.npm.taobao.org
npm set disturl https://npm.taobao.org/dist
3.清除一下安装缓存
npm cache clean --force
4.安装cnpm
npm i -g cnpm --registry=https://registry.npm.taobao.org
5.安装之后,配置下环境变量
cnpm的路径
6.从新打开命令行
cnpm -v查看是否安装成功
安装cnpm失败