Lighthouse requires Node.js 22 (LTS) or later. Run
node --version to check.1
Install Lighthouse
Install the Verify the installation:
lighthouse package globally using npm or Yarn.2
Run your first audit
Point Lighthouse at any URL. Chrome launches automatically, loads the page, collects data, and exits.By default, Lighthouse audits all four categories (Performance, Accessibility, SEO, Best Practices) using simulated mobile throttling.
3
View the HTML report
Unless you specify otherwise, Lighthouse saves an HTML report to a file in the current directory:Open this file in any browser to see your scores, metric values, and actionable recommendations for every failing audit.You can also upload any
.report.json file to the Lighthouse Viewer to view and share reports online.4
Try JSON output
Use the JSON output goes to stdout by default. Redirect it to a file with You can request multiple formats in a single run:Other output examples:
--output flag to change the report format. Lighthouse supports html, json, and csv.--output-path:Common flags
Run
lighthouse --help to see all available options.