Software⏱️ 2 min read📅 2026-05-30

How to Fix: Lighthouse CI failing when running 2nd test due to Eperm issues

Lighthouse CI Permission Denied Error

Quick Answer: Try running Lighthouse with elevated privileges or using a different temporary directory to resolve the EPERM error.

Lighthouse CI failing when running 2nd test due to Eperm issues

💡 Why You Are Getting This Error

  • Causes of this issue include:
    1. Running multiple tests in a row without sufficient clearance between them, leading to file descriptor exhaustion.

✅ Best Solutions to Fix It

Method 1: Running Lighthouse in a Separate Process

  1. Step 1: Run the lighthouse command with the --no-wait option to prevent file descriptor exhaustion.

Method 2: Increasing the Maximum Number of Open Files

  1. Step 1: Edit your system's configuration file to increase the maximum number of open files.

✨ Wrapping Up

To resolve this issue, try running Lighthouse in a separate process or increasing the maximum number of open files on your system. By doing so, you should be able to run multiple tests without encountering EPERM errors.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions