“littlefs” Missing When Compiling with ESPHome

If you’ve got ESPHome installed on a Mac via Homebrew, you might have noticed a compilation error complaining about littlefs missing on all projects.

I haven’t dug too deeply into this. I suspect it’s a Homebrew dependency issue, but the solution was to go to the following directory (note this might change depending on the version of ESPHome you have installed):

cd /opt/homebrew/Cellar/esphome/2026.2.4/libexec/bin

Then run the following commands:

./python3 -m pip install littlefs-python

./python3 -m pip install fatfs-ng

Until the homebrew dependency (if that is indeed the issue) is resolved, you’ll need to do this each time ESPHome gets updated via homebrew.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.