cypress安装时npm报错:npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy
处理方法一:
更新 npm 版本:npm install -g npm
使用淘宝镜像重新安装依赖:npm install --registry=https://registry.npm.taobao.org
npm install -g cnpm --registry=https://registry.npm.taobao.org
使用 cnpm 进行构建则成功:
cnpm run build:cypress
处理方法二:
使用yarn安装
1.npm install --global yarn
2.配置yarn环境变量
3.yarn add cypress@8.7.0 --dev
javascript
posted on 2022-09-07 08:01 sunny_2016 阅读(1185) 评论(0) 收藏 举报