Cypress安装失败"/>
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安装失败
发布评论