You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pwmetrics https://example.com is not working on a fresh yarn global install.
Steps to reproduce.
yarn global add pwmetrics
pwmetrics https://example.com
Debugging info
Using lighthouse
yarn global add lighthouse
lighthouse https://example.com
This command works fine and Chrome is launched.
Using chrome-launcher
constChromeLauncher=require('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}`);});
Chrome is launched.
Calling lighthouse programmatically works
constChromeLauncher=require('chrome-launcher');constlighthouse=require('lighthouse');ChromeLauncher.launch({startingUrl: 'https://example.com',}).then(chrome=>{console.log(`Chrome debugging port running on ${chrome.port}`);returnlighthouse('https://example.com',{port: chrome.port}).then(results=>{returnchrome.kill().then(()=>console.log(results.lhr));});});
This prints the audit output to console.
Manual programmatic override
constChromeLauncher=require('chrome-launcher');constPWMetrics=require('pwmetrics');ChromeLauncher.launch({startingUrl: 'https://example.com',}).then(chrome=>{console.log(`Chrome debugging port running on ${chrome.port}`);constoptions={flags: {chromeFlags: '--headless',port: chrome.port,runs: 1,},};constpwMetrics=newPWMetrics('http://example.com/',options);returnpwMetrics.start();});
Stack trace
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.<anonymous> (/Users/esuaram/.config/yarn/global/node_modules/pwmetrics/node_modules/chrome-launcher/dist/chrome-launcher.js:145:27)
at Generator.next (<anonymous>)
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.
Environment
pwmetrics version: 4.2.3
Chrome version: 79.0.3945.130
OS version: macOS Catalina 10.15.2
The text was updated successfully, but these errors were encountered:
Config / CLI options
pwmetrics https://example.com
is not working on a freshyarn global
install.Steps to reproduce.
Debugging info
lighthouse
This command works fine and Chrome is launched.
chrome-launcher
Chrome is launched.
lighthouse
programmatically worksThis prints the audit output to console.
Stack trace
Environment
pwmetrics
version:4.2.3
The text was updated successfully, but these errors were encountered: