Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cypress installation failed

I installed nodejs and npm on windows 10. Than I tried to install cypress via npm install cypress --save-dev and get the following Error:

> 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

After this I added the path %USERPROFILE%\AppData\Local\Temp to my system environment variables. But I get this error messages again. How can I fix this problem?

like image 861
ABC123 Avatar asked Jan 21 '20 12:01

ABC123


1 Answers

try the following steps :

  1. install git on your machine and config it as global.

  2. delete old package.js then re-init new package.

  3. try again cypress install command

like image 194
Omar Alazzam Avatar answered Oct 08 '22 13:10

Omar Alazzam