admin管理员组文章数量:814804
Cypress安装失败
我在Windows 10上安装了nodejs和npm。比起我尝试通过npm install cypress --save-dev
安装cypress并得到以下错误:
> node index.js --exec install
The command "node" is either misspelled or
could not be found.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node index.js --exec install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\U\AppData\Roaming\npm-cache\_logs\2020-01-21T11_05_01_566Z-debug.log
此后,我将路径%USERPROFILE%\AppData\Local\Temp
添加到我的系统环境变量中。但是,我再次收到此错误消息。我该如何解决这个问题?
请尝试以下步骤:1.在您的计算机上安装git并将其配置为全局。2.删除旧的package.js,然后重新初始化新的软件包。3.再试一次cypress install命令
本文标签: Cypress安装失败
版权声明:本文标题:Cypress安装失败 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1715130834a821373.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论