发生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失败

相关文章:

  • 2022-01-07
  • 2021-11-18
  • 2021-08-07
  • 2022-01-21
  • 2021-07-10
  • 2022-01-20
  • 2021-09-17
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-02-16
相关资源
相似解决方案