Unable to open Local app in Windows

Thank you for the reply and DM, @kartikparmar.

Since Local’s site data is missing (your sites themselves should still be on your hard disk — it’s just the sites.json file that is blank), you can try restoring sites in a couple of ways:

If you have a backup of your hard drive, you can try restoring that sites.json file to an earlier version.

If you don’t have a backup, you can try to recover your existing sites by following these steps:

  1. Quit Local.
  2. Open the Windows File Explorer.
  3. Make sure you have enabled “show hidden items”.
  4. Browse to This PC → [your hard drive] → Users → [your username] → AppData → Roaming → Local.
  5. Rename the sites.json file to sites-old.json.
  6. You should now be able to start Local. Your sites will not appear in the list, but we’ll try to restore them next.
  7. In Windows File Explorer, locate your Local sites here: PC → [your hard drive] → Users → [your username] → Local Sites.
  8. Right click each of your sites folders, and choose “Compress to ZIP file” to make a zip file from each site folder.
  9. Drag each zip file into Local to import it (you may have to give it a new name when prompted to choose one during import).