Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.3] Error installing cypress #38740

Closed
brianteeman opened this issue Sep 12, 2022 · 8 comments
Closed

[4.3] Error installing cypress #38740

brianteeman opened this issue Sep 12, 2022 · 8 comments

Comments

@brianteeman
Copy link
Contributor

brianteeman commented Sep 12, 2022

On a clean checkout of 4.3 on a windows pc and then running npm i
It gets to a certain point and then hangs

Checking the npm log and the directory tree its failing when trying to install cypress.


207 timing reify:rollback:retireShallow Completed in 15ms
208 timing command:i Completed in 284544ms
209 verbose stack Error: command failed
209 verbose stack     at ChildProcess.<anonymous> (C:\laragon\bin\nodejs\node-v18\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:63:27)
209 verbose stack     at ChildProcess.emit (node:events:527:28)
209 verbose stack     at maybeClose (node:internal/child_process:1090:16)
209 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
210 verbose pkgid [email protected]
211 verbose cwd C:\laragon\www\j4
212 verbose Windows_NT 10.0.22000
213 verbose node v18.3.0
214 verbose npm  v8.12.1
215 error code 127
216 error path C:\laragon\www\j4\node_modules\cypress
217 error command failed
218 error command C:\WINDOWS\system32\cmd.exe /d /s /c node index.js --exec install
219 error Installing Cypress (version: 10.6.0)
219 error
@Hackwar
Copy link
Member

Hackwar commented Sep 12, 2022

I checked out a clean copy of the current 4.3-dev branch and ran composer i and npm i and it installed fine. Maybe a firewall preventing something to run?

@brianteeman
Copy link
Contributor Author

Hard to believe it will be a firewall as everything else works. Are you using windows?

@Hackwar
Copy link
Member

Hackwar commented Sep 12, 2022

Windows 10 Pro Version 10.0.19044 Build 19044

@N6REJ
Copy link
Contributor

N6REJ commented Sep 13, 2022

Can't confirm
image

@C-Lodder
Copy link
Member

C-Lodder commented Sep 13, 2022

Can't confirm on Window 10 x64. Tried with both Node.js 16.x and 18.x
Try updating your Node.js from 18.3.0 to 18.9.0

If that doesn't work, check Windows Defender to see if the cypress binary is being blocked by the firewall

@brianteeman
Copy link
Contributor Author

Thanks @C-Lodder will give that a try later

My google-fu seems to suggest that this is a regular problem with cypress

@Hackwar
Copy link
Member

Hackwar commented Sep 13, 2022

Is there any more in the log output? Can you get more information maybe with more verbose output?

@brianteeman
Copy link
Contributor Author

updating node seems to have resolved the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants