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

Browser: 'chrome' was not found on your system or is not supported by Cypress. #16322

Closed
Shivani1796 opened this issue May 4, 2021 · 16 comments

Comments

@Shivani1796
Copy link

When I am using Cypress I can only se Electron browser. Although I have both firefox & chrome in my computer by Cypress only detects Electron & says:

**Can't run because you've entered an invalid browser name.

Browser: 'chrome' was not found on your system or is not supported by Cypress.**

@jennifer-shehane
Copy link
Member

Are you using Docker?

Please see our troubleshooting guide on Launching Browsers

Could you run Cypress in debug mode specifically logging cypress:launcher logs and run cypress info and print the entire set of logs here?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label May 4, 2021
@rooby
Copy link

rooby commented Mar 16, 2022

@jennifer-shehane

I downgraded from 9.5.1 to 9.4.1 to avoid a separate bug, and this just started happening after the downgrade.
Previously I was using 8.6.0 and it was working fine.

Running on Windows 10 via Git Bash.

Cypress info

Displaying Cypress info...

Detected no known browsers installed


Proxy Settings: none detected
Environment Variables:
CYPRESS_CACHE_FOLDER: C:\W10Dev\.cache\Cypress

Application Data: C:\Users\username\AppData\Roaming\cypress\cy\development
Browser Profiles: C:\Users\username\AppData\Roaming\cypress\cy\development\browsers
Binary Caches: C:\W10Dev\.cache\Cypress

Cypress Version: 9.4.1
System Platform: win32 (10.0.18363)
System Memory: 34.1 GB free 7.57 GB

This log seems odd, that location is actually where Chrome is:

2022-03-16T00:40:33.285Z cypress:launcher found C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe ? true
2022-03-16T00:40:33.368Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe', exePaths: [ 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe' ], err: Error: Command failed with EPERM: wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value spawn EPERM at ChildProcess.spawn (node:internal/child_process:415:11) at Object.spawn (node:child_process:707:9) at Object.execa (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\node_modules\execa\index.js:80:26) at getVersionString (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:172:26) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:133:20 { errno: -4048, code: 'EPERM', syscall: 'spawn', originalMessage: 'spawn EPERM', shortMessage: 'Command failed with EPERM: wmic datafile where name="C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe" get Version /value\n' + 'spawn EPERM', command: 'wmic datafile where name="C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe" get Version /value', exitCode: undefined, signal: undefined, signalDescription: undefined, stdout: '', stderr: '', all: '', failed: true, timedOut: false, isCanceled: false, killed: false } }

Full launcher logs:

2022-03-16T00:40:33.283Z cypress:launcher checking one browser chrome
2022-03-16T00:40:33.283Z cypress:launcher looking up chrome on win32 platform
2022-03-16T00:40:33.283Z cypress:launcher looking at possible paths... { browser: { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ], minSupportedVersion: 64 }, exePaths: [ 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe', 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe' ] }
2022-03-16T00:40:33.285Z cypress:launcher found C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe ? true
2022-03-16T00:40:33.368Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe', exePaths: [ 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe' ], err: Error: Command failed with EPERM: wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value spawn EPERM at ChildProcess.spawn (node:internal/child_process:415:11) at Object.spawn (node:child_process:707:9) at Object.execa (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\node_modules\execa\index.js:80:26) at getVersionString (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:172:26) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:133:20 { errno: -4048, code: 'EPERM', syscall: 'spawn', originalMessage: 'spawn EPERM', shortMessage: 'Command failed with EPERM: wmic datafile where name="C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe" get Version /value\n' + 'spawn EPERM', command: 'wmic datafile where name="C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe" get Version /value', exitCode: undefined, signal: undefined, signalDescription: undefined, stdout: '', stderr: '', all: '', failed: true, timedOut: false, isCanceled: false, killed: false } }
2022-03-16T00:40:33.369Z cypress:launcher found C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe ? false
2022-03-16T00:40:33.370Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe', exePaths: [], err: Error: Browser not installed: chrome at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.370Z cypress:launcher browser chrome not installed
2022-03-16T00:40:33.370Z cypress:launcher checking one browser chromium
2022-03-16T00:40:33.370Z cypress:launcher looking up chromium on win32 platform
2022-03-16T00:40:33.370Z cypress:launcher looking at possible paths... { browser: { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, binary: [ 'chromium-browser', 'chromium' ], minSupportedVersion: 64 }, exePaths: [ 'C:\\Program Files (x86)\\Google\\chrome-win32\\chrome.exe' ] }
2022-03-16T00:40:33.371Z cypress:launcher found C:\\Program Files (x86)\\Google\\chrome-win32\\chrome.exe ? false
2022-03-16T00:40:33.371Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Google\\chrome-win32\\chrome.exe', exePaths: [], err: Error: Browser not installed: chromium at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.371Z cypress:launcher browser chromium not installed
2022-03-16T00:40:33.371Z cypress:launcher checking one browser chrome
2022-03-16T00:40:33.371Z cypress:launcher looking up chrome on win32 platform
2022-03-16T00:40:33.371Z cypress:launcher looking at possible paths... { browser: { name: 'chrome', family: 'chromium', channel: 'beta', displayName: 'Chrome Beta', versionRegex: /Google Chrome (\S+) beta/m, binary: 'google-chrome-beta', minSupportedVersion: 64 }, exePaths: [ 'C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe', 'C:\\Program Files\\Google\\Chrome Beta\\Application\\chrome.exe' ] }
2022-03-16T00:40:33.372Z cypress:launcher found C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe ? false
2022-03-16T00:40:33.372Z cypress:launcher found C:\\Program Files\\Google\\Chrome Beta\\Application\\chrome.exe ? false
2022-03-16T00:40:33.372Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files\\Google\\Chrome Beta\\Application\\chrome.exe', exePaths: [], err: Error: Browser not installed: chrome at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.372Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Google\\Chrome Beta\\Application\\chrome.exe', exePaths: [], err: Error: Browser not installed: chrome at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:150:20 { notInstalled: true } }
2022-03-16T00:40:33.372Z cypress:launcher browser chrome not installed
2022-03-16T00:40:33.373Z cypress:launcher checking one browser chrome
2022-03-16T00:40:33.373Z cypress:launcher looking up chrome on win32 platform
2022-03-16T00:40:33.373Z cypress:launcher looking at possible paths... { browser: { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, binary: 'google-chrome-canary', minSupportedVersion: 64 }, exePaths: [ 'C:\\Users\\username\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe' ] }
2022-03-16T00:40:33.373Z cypress:launcher found C:\\Users\\username\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe ? false
2022-03-16T00:40:33.374Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Users\\username\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe', exePaths: [], err: Error: Browser not installed: chrome at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.374Z cypress:launcher browser chrome not installed
2022-03-16T00:40:33.374Z cypress:launcher checking one browser firefox
2022-03-16T00:40:33.374Z cypress:launcher looking up firefox on win32 platform
2022-03-16T00:40:33.374Z cypress:launcher looking at possible paths... { browser: { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, binary: 'firefox', minSupportedVersion: 86 }, exePaths: [ 'C:\\Program Files\\Mozilla Firefox\\firefox.exe', 'C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe', 'C:\\Users\\username\\AppData\\Local\\Mozilla Firefox\\firefox.exe' ] }
2022-03-16T00:40:33.375Z cypress:launcher found C:\\Program Files\\Mozilla Firefox\\firefox.exe ? false
2022-03-16T00:40:33.375Z cypress:launcher found C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe ? true
2022-03-16T00:40:33.415Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe', exePaths: [ 'C:\\Users\\username\\AppData\\Local\\Mozilla Firefox\\firefox.exe' ], err: Error: Command failed with EPERM: wmic datafile where name="C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" get Version /value spawn EPERM at ChildProcess.spawn (node:internal/child_process:415:11) at Object.spawn (node:child_process:707:9) at Object.execa (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\node_modules\execa\index.js:80:26) at getVersionString (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:172:26) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:133:20 { errno: -4048, code: 'EPERM', syscall: 'spawn', originalMessage: 'spawn EPERM', shortMessage: 'Command failed with EPERM: wmic datafile where name="C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe" get Version /value\n' + 'spawn EPERM', command: 'wmic datafile where name="C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe" get Version /value', exitCode: undefined, signal: undefined, signalDescription: undefined, stdout: '', stderr: '', all: '', failed: true, timedOut: false, isCanceled: false, killed: false } }
2022-03-16T00:40:33.417Z cypress:launcher found C:\\Users\\username\\AppData\\Local\\Mozilla Firefox\\firefox.exe ? false
2022-03-16T00:40:33.417Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Users\\username\\AppData\\Local\\Mozilla Firefox\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.417Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:150:20 { notInstalled: true } }
2022-03-16T00:40:33.417Z cypress:launcher browser firefox not installed
2022-03-16T00:40:33.419Z cypress:launcher checking one browser firefox
2022-03-16T00:40:33.419Z cypress:launcher looking up firefox on win32 platform
2022-03-16T00:40:33.419Z cypress:launcher looking at possible paths... { browser: { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, binary: [ 'firefox-developer-edition', 'firefox' ], minSupportedVersion: 86 }, exePaths: [ 'C:\\Program Files\\Firefox Developer Edition\\firefox.exe', 'C:\\Program Files (x86)\\Firefox Developer Edition\\firefox.exe', 'C:\\Users\\username\\AppData\\Local\\Firefox Developer Edition\\firefox.exe' ] }
2022-03-16T00:40:33.420Z cypress:launcher found C:\\Program Files\\Firefox Developer Edition\\firefox.exe ? false
2022-03-16T00:40:33.421Z cypress:launcher found C:\\Program Files (x86)\\Firefox Developer Edition\\firefox.exe ? false
2022-03-16T00:40:33.421Z cypress:launcher found C:\\Users\\username\\AppData\\Local\\Firefox Developer Edition\\firefox.exe ? false
2022-03-16T00:40:33.422Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Users\\username\\AppData\\Local\\Firefox Developer Edition\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.422Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Firefox Developer Edition\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:150:20 { notInstalled: true } }
2022-03-16T00:40:33.422Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files\\Firefox Developer Edition\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:150:20 { notInstalled: true } }
2022-03-16T00:40:33.422Z cypress:launcher browser firefox not installed
2022-03-16T00:40:33.423Z cypress:launcher checking one browser firefox
2022-03-16T00:40:33.423Z cypress:launcher looking up firefox on win32 platform
2022-03-16T00:40:33.423Z cypress:launcher looking at possible paths... { browser: { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, binary: [ 'firefox-nightly', 'firefox-trunk' ], minSupportedVersion: 86 }, exePaths: [ 'C:\\Program Files\\Firefox Nightly\\firefox.exe', 'C:\\Program Files (x86)\\Firefox Nightly\\firefox.exe', 'C:\\Users\\username\\AppData\\Local\\Firefox Nightly\\firefox.exe' ] }
2022-03-16T00:40:33.423Z cypress:launcher found C:\\Program Files\\Firefox Nightly\\firefox.exe ? false
2022-03-16T00:40:33.424Z cypress:launcher found C:\\Program Files (x86)\\Firefox Nightly\\firefox.exe ? false
2022-03-16T00:40:33.424Z cypress:launcher found C:\\Users\\username\\AppData\\Local\\Firefox Nightly\\firefox.exe ? false
2022-03-16T00:40:33.424Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Users\\username\\AppData\\Local\\Firefox Nightly\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.424Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Firefox Nightly\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:150:20 { notInstalled: true } }
2022-03-16T00:40:33.425Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files\\Firefox Nightly\\firefox.exe', exePaths: [], err: Error: Browser not installed: firefox at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:150:20 { notInstalled: true } }
2022-03-16T00:40:33.425Z cypress:launcher browser firefox not installed
2022-03-16T00:40:33.425Z cypress:launcher checking one browser edge
2022-03-16T00:40:33.425Z cypress:launcher looking up edge on win32 platform
2022-03-16T00:40:33.425Z cypress:launcher looking at possible paths... { browser: { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, binary: [ 'edge', 'microsoft-edge' ], minSupportedVersion: 79 }, exePaths: [ 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe' ] }
2022-03-16T00:40:33.426Z cypress:launcher found C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe ? true
2022-03-16T00:40:33.478Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe', exePaths: [], err: Error: Command failed with EPERM: wmic datafile where name="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe" get Version /value spawn EPERM at ChildProcess.spawn (node:internal/child_process:415:11) at Object.spawn (node:child_process:707:9) at Object.execa (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\node_modules\execa\index.js:80:26) at getVersionString (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:172:26) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:133:20 { errno: -4048, code: 'EPERM', syscall: 'spawn', originalMessage: 'spawn EPERM', shortMessage: 'Command failed with EPERM: wmic datafile where name="C:\\\\Program Files (x86)\\\\Microsoft\\\\Edge\\\\Application\\\\msedge.exe" get Version /value\n' + 'spawn EPERM', command: 'wmic datafile where name="C:\\\\Program Files (x86)\\\\Microsoft\\\\Edge\\\\Application\\\\msedge.exe" get Version /value', exitCode: undefined, signal: undefined, signalDescription: undefined, stdout: '', stderr: '', all: '', failed: true, timedOut: false, isCanceled: false, killed: false } }
2022-03-16T00:40:33.478Z cypress:launcher browser edge not installed
2022-03-16T00:40:33.479Z cypress:launcher checking one browser edge
2022-03-16T00:40:33.479Z cypress:launcher looking up edge on win32 platform
2022-03-16T00:40:33.479Z cypress:launcher looking at possible paths... { browser: { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, binary: 'edge-canary', minSupportedVersion: 79 }, exePaths: [ 'C:\\Users\\username\\AppData\\Local\\Microsoft\\Edge SxS\\Application\\msedge.exe' ] }
2022-03-16T00:40:33.480Z cypress:launcher found C:\\Users\\username\\AppData\\Local\\Microsoft\\Edge SxS\\Application\\msedge.exe ? false
2022-03-16T00:40:33.481Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Users\\username\\AppData\\Local\\Microsoft\\Edge SxS\\Application\\msedge.exe', exePaths: [], err: Error: Browser not installed: edge at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.481Z cypress:launcher browser edge not installed
2022-03-16T00:40:33.482Z cypress:launcher checking one browser edge
2022-03-16T00:40:33.482Z cypress:launcher looking up edge on win32 platform
2022-03-16T00:40:33.482Z cypress:launcher looking at possible paths... { browser: { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, binary: 'edge-beta', minSupportedVersion: 79 }, exePaths: [ 'C:\\Program Files (x86)\\Microsoft\\Edge Beta\\Application\\msedge.exe' ] }
2022-03-16T00:40:33.483Z cypress:launcher found C:\\Program Files (x86)\\Microsoft\\Edge Beta\\Application\\msedge.exe ? false
2022-03-16T00:40:33.483Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Microsoft\\Edge Beta\\Application\\msedge.exe', exePaths: [], err: Error: Browser not installed: edge at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.483Z cypress:launcher browser edge not installed
2022-03-16T00:40:33.484Z cypress:launcher checking one browser edge
2022-03-16T00:40:33.484Z cypress:launcher looking up edge on win32 platform
2022-03-16T00:40:33.484Z cypress:launcher looking at possible paths... { browser: { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, binary: [ 'edge-dev', 'microsoft-edge-dev' ], minSupportedVersion: 79 }, exePaths: [ 'C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe' ] }
2022-03-16T00:40:33.485Z cypress:launcher found C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe ? false
2022-03-16T00:40:33.485Z cypress:launcher error while looking up exe, trying next exePath { exePath: 'C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe', exePaths: [], err: Error: Browser not installed: edge at notInstalledErr (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\errors.js:5:17) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:124:48 at Generator.next (<anonymous>:null:null) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:27:71 at new Promise (<anonymous>:null:null) at __awaiter (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:23:12) at tryNextExePath (C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:120:34) at C:\W10Dev\.cache\Cypress\9.4.1\Cypress\resources\app\packages\launcher\lib\windows\index.js:131:24 { notInstalled: true } }
2022-03-16T00:40:33.485Z cypress:launcher browser edge not installed

@rooby
Copy link

rooby commented Mar 16, 2022

I also tried clearing app data folder and explicitly adding C:\Windows\System32\wbem to my PATH as recommended in other issues, but that hasn't helped. Fresh install of node_modules including cypress didn't help either.

@HarlesPilter
Copy link
Contributor

HarlesPilter commented Apr 8, 2022

@jennifer-shehane
Having the same issue. But for me it happens on docker.
I am using docker image cypress/browsers:node16.14.0-slim-chrome99-ff97 but I have narrowed it down to happening after I have run npm ci --cache .npm --prefer-offline --no-audit

Full cypress:launcher log

cypress:launcher detecting if the following browsers are present [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ], minSupportedVersion: 64 }, { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, binary: [ 'chromium-browser', 'chromium' ], minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'beta', displayName: 'Chrome Beta', versionRegex: /Google Chrome (\S+) beta/m, binary: 'google-chrome-beta', minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, binary: 'google-chrome-canary', minSupportedVersion: 64 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, binary: 'firefox', minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, binary: [ 'firefox-developer-edition', 'firefox' ], minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, binary: [ 'firefox-nightly', 'firefox-trunk' ], minSupportedVersion: 86 }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, binary: [ 'edge', 'microsoft-edge' ], minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, binary: 'edge-canary', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, binary: 'edge-beta', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, binary: [ 'edge-dev', 'microsoft-edge-dev' ], minSupportedVersion: 79 } ] +0ms
  cypress:launcher checking one browser chrome +6ms
  cypress:launcher looking up chrome on linux platform +0ms
  cypress:launcher finding version string using command "google-chrome --version" +0ms
[3[58](https://gitlab.lhv.eu/lhv-ui-components/lhv-component-library/-/jobs/358995#L58):0408/1[82](https://gitlab.lhv.eu/lhv-ui-components/lhv-component-library/-/jobs/358995#L82)009.825399:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 
  cypress:launcher checking one browser chrome +16ms
  cypress:launcher looking up chrome on linux platform +1ms
  cypress:launcher finding version string using command "chrome --version" +0ms
  cypress:launcher checking one browser chrome +13ms
  cypress:launcher looking up chrome on linux platform +0ms
  cypress:launcher finding version string using command "google-chrome-stable --version" +0ms
  cypress:launcher Received error detecting browser binary: "chrome" with error: spawn chrome ENOENT +19ms
  cypress:launcher browser chrome not installed +0ms
  cypress:launcher stdout:  +92ms
  cypress:launcher Could not extract version from stdout using regex: { stdout: '', versionRegex: /Google Chrome (\S+)/m } +1ms
  cypress:launcher Received error detecting browser binary: "google-chrome" with error: Browser not installed: google-chrome +0ms
  cypress:launcher browser chrome not installed +0ms
  cypress:launcher stdout:  +26ms
  cypress:launcher Could not extract version from stdout using regex: { stdout: '', versionRegex: /Google Chrome (\S+)/m } +0ms
  cypress:launcher Received error detecting browser binary: "google-chrome-stable" with error: Browser not installed: google-chrome-stable +1ms
  cypress:launcher browser chrome not installed +0ms
  cypress:launcher checking one browser chromium +0ms
  cypress:launcher looking up chromium on linux platform +0ms
  cypress:launcher finding version string using command "chromium-browser --version" +0ms
  cypress:launcher checking one browser chromium +14ms
  cypress:launcher looking up chromium on linux platform +0ms
  cypress:launcher finding version string using command "chromium --version" +0ms
  cypress:launcher Received error detecting browser binary: "chromium-browser" with error: spawn chromium-browser ENOENT +16ms
  cypress:launcher Received error detecting browser binary: "chromium" with error: spawn chromium ENOENT +0ms
  cypress:launcher browser chromium not installed +0ms
  cypress:launcher browser chromium not installed +0ms
  cypress:launcher checking one browser chrome +0ms
  cypress:launcher looking up chrome on linux platform +0ms
  cypress:launcher finding version string using command "google-chrome-beta --version" +0ms
  cypress:launcher Received error detecting browser binary: "google-chrome-beta" with error: spawn google-chrome-beta ENOENT +15ms
  cypress:launcher browser chrome not installed +0ms
  cypress:launcher checking one browser chrome +0ms
  cypress:launcher looking up chrome on linux platform +0ms
  cypress:launcher finding version string using command "google-chrome-canary --version" +0ms
  cypress:launcher Received error detecting browser binary: "google-chrome-canary" with error: spawn google-chrome-canary ENOENT +14ms
  cypress:launcher browser chrome not installed +0ms
  cypress:launcher checking one browser firefox +0ms
  cypress:launcher looking up firefox on linux platform +0ms
  cypress:launcher finding version string using command "firefox --version" +0ms
  cypress:launcher stdout: Mozilla Firefox 98.0.2 +47ms
  cypress:launcher setting major version for {"name":"firefox","family":"firefox","channel":"stable","displayName":"Firefox","version":"98.0.2","path":"firefox","minSupportedVersion":[86](https://gitlab.lhv.eu/lhv-ui-components/lhv-component-library/-/jobs/358995#L86)} +1ms
  cypress:launcher browser firefox version 98.0.2 major version 98 false +0ms
  cypress:launcher checking one browser firefox +0ms
  cypress:launcher looking up firefox on linux platform +0ms
  cypress:launcher finding version string using command "firefox-developer-edition --version" +0ms
  cypress:launcher checking one browser firefox +13ms
  cypress:launcher looking up firefox on linux platform +0ms
  cypress:launcher finding version string using command "firefox --version" +0ms
  cypress:launcher Received error detecting browser binary: "firefox-developer-edition" with error: spawn firefox-developer-edition ENOENT +19ms
  cypress:launcher browser firefox not installed +0ms
  cypress:launcher stdout: Mozilla Firefox 98.0.2 +43ms
  cypress:launcher Could not extract version from stdout using regex: { stdout: 'Mozilla Firefox 98.0.2', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m } +0ms
  cypress:launcher Received error detecting browser binary: "firefox" with error: Browser not installed: firefox +1ms
  cypress:launcher browser firefox not installed +0ms
  cypress:launcher checking one browser firefox +0ms
  cypress:launcher looking up firefox on linux platform +0ms
  cypress:launcher finding version string using command "firefox-nightly --version" +0ms
  cypress:launcher checking one browser firefox +14ms
  cypress:launcher looking up firefox on linux platform +0ms
  cypress:launcher finding version string using command "firefox-trunk --version" +0ms
  cypress:launcher Received error detecting browser binary: "firefox-nightly" with error: spawn firefox-nightly ENOENT +[91](https://gitlab.lhv.eu/lhv-ui-components/lhv-component-library/-/jobs/358995#L91)ms
  cypress:launcher Received error detecting browser binary: "firefox-trunk" with error: spawn firefox-trunk ENOENT +0ms
  cypress:launcher browser firefox not installed +1ms
  cypress:launcher browser firefox not installed +0ms
  cypress:launcher checking one browser edge +0ms
  cypress:launcher looking up edge on linux platform +0ms
  cypress:launcher finding version string using command "edge --version" +0ms
  cypress:launcher checking one browser edge +17ms
  cypress:launcher looking up edge on linux platform +0ms
  cypress:launcher finding version string using command "microsoft-edge --version" +0ms
  cypress:launcher Received error detecting browser binary: "edge" with error: spawn edge ENOENT +15ms
  cypress:launcher Received error detecting browser binary: "microsoft-edge" with error: spawn microsoft-edge ENOENT +0ms
  cypress:launcher browser edge not installed +1ms
  cypress:launcher browser edge not installed +0ms
  cypress:launcher checking one browser edge +0ms
  cypress:launcher looking up edge on linux platform +0ms
  cypress:launcher finding version string using command "edge-canary --version" +0ms
  cypress:launcher Received error detecting browser binary: "edge-canary" with error: spawn edge-canary ENOENT +11ms
  cypress:launcher browser edge not installed +0ms
  cypress:launcher checking one browser edge +0ms
  cypress:launcher looking up edge on linux platform +0ms
  cypress:launcher finding version string using command "edge-beta --version" +0ms
  cypress:launcher Received error detecting browser binary: "edge-beta" with error: spawn edge-beta ENOENT +50ms
  cypress:launcher browser edge not installed +0ms
  cypress:launcher checking one browser edge +0ms
  cypress:launcher looking up edge on linux platform +0ms
  cypress:launcher finding version string using command "edge-dev --version" +0ms
  cypress:launcher checking one browser edge +14ms
  cypress:launcher looking up edge on linux platform +0ms
  cypress:launcher finding version string using command "microsoft-edge-dev --version" +0ms
  cypress:launcher Received error detecting browser binary: "edge-dev" with error: spawn edge-dev ENOENT +15ms
  cypress:launcher Received error detecting browser binary: "microsoft-edge-dev" with error: spawn microsoft-edge-dev ENOENT +0ms
  cypress:launcher browser edge not installed +0ms
  cypress:launcher browser edge not installed +0ms

package.json

  "dependencies": {
  "@angular/animations": "13.1.3",
  "@angular/cdk": "13.1.3",
  "@angular/common": "13.1.3",
  "@angular/compiler": "13.1.3",
  "@angular/core": "13.1.3",
  "@angular/forms": "13.1.3",
  "@angular/platform-browser": "13.1.3",
  "@angular/platform-browser-dynamic": "13.1.3",
  "@angular/router": "13.1.3",
  "@ng-select/ng-select": "^8.1.1",
  "document-register-element": "^1.7.2",
  "highcharts": "^9.3.3",
  "highcharts-angular": "^3.0.0",
  "lodash-es": "^4.17.21",
  "material-components-web": "^13.0.0",
  "moment": "^2.29.1",
  "postcss-url": "^10.1.3",
  "replace-in-file": "^6.2.0",
  "rxjs": "~6.6.0",
  "tslib": "^2.2.0",
  "zone.js": "~0.11.4"
},
"devDependencies": {
  "@angular-devkit/build-angular": "13.1.3",
  "@angular-eslint/builder": "13.0.1",
  "@angular-eslint/eslint-plugin": "13.0.1",
  "@angular-eslint/eslint-plugin-template": "13.0.1",
  "@angular-eslint/schematics": "13.0.1",
  "@angular-eslint/template-parser": "13.0.1",
  "@angular-extensions/svg-icons-builder": "^3.0.0",
  "@angular/cli": "13.1.3",
  "@angular/compiler-cli": "13.1.3",
  "@babel/core": "^7.14.6",
  "@commitlint/cli": "^12.1.4",
  "@commitlint/config-conventional": "^12.1.4",
  "@compodoc/compodoc": "^1.1.14",
  "@percy/cli": "^1.0.0-beta.58",
  "@percy/cypress": "^3.1.0",
  "@storybook/addon-actions": "6.4.17",
  "@storybook/addon-essentials": "6.4.17",
  "@storybook/addon-links": "6.4.17",
  "@storybook/angular": "6.4.17",
  "@storybook/builder-webpack5": "6.4.17",
  "@storybook/manager-webpack5": "6.4.17",
  "@storybook/preset-scss": "1.0.3",
  "@storybook/theming": "6.4.17",
  "@types/lodash-es": "^4.17.4",
  "@types/node": "^12.11.1",
  "@typescript-eslint/eslint-plugin": "5.10.1",
  "@typescript-eslint/parser": "5.10.1",
  "@webcomponents/custom-elements": "^1.4.3",
  "babel-loader": "^8.2.2",
  "base64-inline-loader": "^2.0.1",
  "concurrently": "^6.2.0",
  "copyfiles": "^2.4.1",
  "cross-cat": "^1.0.0",
  "cypress": "9.5.3",
  "cypress-storybook": "^0.5.1",
  "del": "^6.0.0",
  "eslint": "^7.26.0",
  "eslint-config-prettier": "^8.3.0",
  "eslint-plugin-prettier": "^3.4.0",
  "eslint-plugin-simple-import-sort": "^7.0.0",
  "eslint-plugin-storybook": "^0.5.6",
  "http-server": "^0.12.3",
  "husky": "^7.0.0",
  "lint-staged": "^11.0.0",
  "ng-lint-staged": "^12.0.3",
  "ng-packagr": "13.1.3",
  "prettier": "^2.3.2",
  "source-map-explorer": "^2.5.2",
  "standard-version": "^9.3.0",
  "start-server-and-test": "^1.12.6",
  "typescript": "4.5.5"
},

@cypress-bot cypress-bot bot added stage: backlog and removed stage: needs information Not enough info to reproduce the issue labels Apr 29, 2022
@Yurii397
Copy link

Yurii397 commented Jun 8, 2022

Have the same issue on GitLab CI,
installing cypress and chrome directly in the job (in .yml) file. yarn add --dev chrome cypress@9.7.0

image

and it's funny that I get chromium instead of chrome

@nischi
Copy link

nischi commented Aug 2, 2022

i do have also the same issue on an m1 max macbook

@drptbl
Copy link

drptbl commented Sep 9, 2022

I'm able to reproduce this issue with official docker container:
FROM cypress/browsers:node18.6.0-chrome105-ff104
on MacBook Pro (13-inch, M2, 2022).

@abhi1693
Copy link

I have a similar issue but with firefox

image

@Lloid10
Copy link

Lloid10 commented Feb 8, 2023

Same problem in CI jenkins
cypress version 12.5.1
I tried to switch a version to older one (all to 10.0.0). Didn't help

image

@rooby
Copy link

rooby commented Apr 13, 2023

The issue for me on Windows seems to be a permissions issue when running the wmic datafile command.
E.g.

Command failed with EPERM: wmic datafile where name="C:\path\to\chrome\chrome.exe" get Version /value
spawn EPERM

Even though when I run that command manually in CMD it successfully returns the version.

I have a pretty locked down PC in my work environment, but surely if I'm providing Cypress with the path to chrome it can just use that path.

@abhi1693
Copy link

That's not how permissions work. The user that's using the path should have execution related permissions on that path first. Otherwise, anyone with a path can run anything no matter how much you lock your system down.

@rooby
Copy link

rooby commented Apr 13, 2023

@abhi1693 My user has permission to run chrome, and my user is running Cypress.
My user has permission to run wmic directly in CMD, however if I try to run it in any other context (e.g. PowerShell, Git bash) I get permission denied.
My assumption is that the permission error here is with wmic, not with Chrome.
I don't understand why Cypress needs to run wmic if I'm giving it the full path to Chrome.

@jordanpowell88
Copy link
Collaborator

@abhi1693 Are you perhaps using a machine with a corporate proxy? It's difficult to investigate this issue since it is specific to your machine. If you are part of a team, Is this happening to anyone else? Any additional context would be appreciated so we can investigate further.

@warrensplayer
Copy link
Contributor

Right now there doesn't seem to be enough information to reproduce the problem on our end. Unless we receive a reliable reproduction, we'll eventually have to close this issue until we can reproduce it. This does not mean that your issue is not happening - it just means that we do not have a path to move forward.

Please provide a reproducible example of the issue you're encountering. Here are some tips for providing a Short, Self Contained, Correct, Example and our own Troubleshooting Cypress guide.

@warrensplayer warrensplayer removed their assignment May 8, 2023
@rooby
Copy link

rooby commented May 8, 2023

@warrensplayer I provided the cause of the issue in my case in a previous comment.

the problem was caused by not having permission to run wmic. So ideally there would be an option to specify the exact path to Chrome and not use wmic at all.
Should I open a new issue for that specifically?

@nagash77
Copy link
Contributor

nagash77 commented May 9, 2023

@rooby please feel free to submit that feature request. Based on our current priorities I do not see us prioritizing that work though.

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

No branches or pull requests