Launching Chrome
{ Error
at new LauncherError (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/utils.js:35:22)
at new ChromeNotInstalledError (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/utils.js:66:9)
at Launcher. (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/chrome-launcher.js:145:27)
at Generator.next ()
at fulfilled (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/chrome-launcher.js:9:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
message: 'No Chrome installations found.',
code: 'ERR_LAUNCHER_NOT_INSTALLED' }
✘ Error: Unable to complete run 1 of 1 due to connect ECONNREFUSED 127.0.0.1:9222.
Config / CLI options
pwmetrics https://example.com
is not working on a freshyarn global
install.Steps to reproduce.
Debugging info
Using
lighthouse
This command works fine and Chrome is launched.
Using
chrome-launcher
ChromeLauncher.launch({ port: 9222, startingUrl: 'http://localhost:9000/us/en-us/suv-rental', }).then(chrome => { console.log(
Chrome debugging port running on ${chrome.port}
); });This prints the audit output to console.
ChromeLauncher.launch({ startingUrl: 'https://example.com', }).then(chrome => { console.log(
Chrome debugging port running on ${chrome.port}
); const options = { flags: { chromeFlags: '--headless', port: chrome.port, runs: 1, }, }; const pwMetrics = new PWMetrics('http://example.com/', options); return pwMetrics.start(); });Launching Chrome { Error at new LauncherError (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/utils.js:35:22) at new ChromeNotInstalledError (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/utils.js:66:9) at Launcher. (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/chrome-launcher.js:145:27)
at Generator.next ()
at fulfilled (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/chrome-launcher.js:9:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
message: 'No Chrome installations found.',
code: 'ERR_LAUNCHER_NOT_INSTALLED' }
✘ Error: Unable to complete run 1 of 1 due to connect ECONNREFUSED 127.0.0.1:9222.