赛普拉斯安装失败

ABC*_*123 6 installation node.js cypress

我在 Windows 10 上安装了 nodejs 和 npm。比我尝试通过安装 cypress npm install cypress --save-dev并得到以下错误:

> 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! cypress@3.8.2 postinstall: `node index.js --exec install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cypress@3.8.2 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
Run Code Online (Sandbox Code Playgroud)

在此之后,我将路径添加%USERPROFILE%\AppData\Local\Temp到我的系统环境变量中。但是我再次收到此错误消息。我该如何解决这个问题?

小智 2

尝试以下步骤:

  1. 在你的机器上安装 git 并将其配置为全局。

  2. 删除旧的 package.js 然后重新初始化新的包。

  3. 重试 cypress 安装命令