最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Cypress安装失败

网站源码admin22浏览0评论

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命令

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论