vue3.0创建项目npm ERR! The Cypress App could not be downloaded.解决

文章讲述了在使用Vue3.0开发时遇到Cypress安装问题,npm报错404,原因是Cypress未正确安装且对大小写敏感。解决方法是通过`npminstall-gcypress`命令全局安装Cypress。
摘要由CSDN通过智能技术生成

项目场景:

vue3.0 ,create vue xxx


问题描述

npm ERR! code 1
npm ERR! path F:\projects\vue30\dashboard\node_modules\cypress
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node index.js --exec install
npm ERR! Installing Cypress (version: 9.7.0)
npm ERR!
npm ERR! [STARTED] Task without title.
npm ERR! The Cypress App could not be downloaded.
npm ERR!
npm ERR! Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration
npm ERR!
npm ERR! Otherwise, please check network connectivity and try again:
npm ERR!
npm ERR! ----------
npm ERR!
npm ERR! URL: https://cdn.npmmirror.com/binaries/cypress/${version}/win32-x64/cypress.zip
npm ERR! Error: Failed downloading the Cypress binary.
npm ERR! Response code: 404
npm ERR! Response message: Not Found
npm ERR!
npm ERR! ----------

原因分析:

cypress没安装,找不到Cypress,区分大小写


解决方案:

安装cypress

npm install -g cypress
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值