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 cypress@10.6.0
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
Labels |
Added:
No Code Attached Yet
|
Hard to believe it will be a firewall as everything else works. Are you using windows?
Windows 10 Pro Version 10.0.19044 Build 19044
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
Is there any more in the log output? Can you get more information maybe with more verbose output?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-09-13 11:45:06 |
Closed_By | ⇒ | brianteeman |
updating node seems to have resolved the problem
I checked out a clean copy of the current 4.3-dev branch and ran
composer i
andnpm i
and it installed fine. Maybe a firewall preventing something to run?