I worked with @Scots via DM to solve this. Both their sites.json
and sites-organization.json
files were corrupt.
If Local will not start and you see lines such as %%userDataPath%%\\sites.json: Unexpected token… is not valid JSON
in your Local logs, I’m documenting here how we got Local to start again and restore missing sites:
- Quit Local if it’s running.
- Open the Windows File Explorer.
- Make sure you have enabled “show hidden items”.
- Browse to This PC → [your hard drive] → Users → [your username] → AppData → Roaming → Local.
- Rename the
sites-organization.json
file tosites-organization-old.json
andsites.json
tosites-old.json
. - Start Local.
Import the sites manually from their location on disk, which involves:
- In Windows File Explorer, locate your Local sites here: PC → [your hard drive] → Users → [your username] → Local Sites.
- Right click each of your sites folders, and choose “Compress to ZIP file” to make a zip file from each site folder.
- Drag each zip file into Local to import it (you may have to give it a new name).