Local ne se lance plus

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:

  1. Quit Local if it’s running.
  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-organization.json file to sites-organization-old.json and sites.json to sites-old.json.
  6. Start Local.

Import the sites manually from their location on disk, which involves:

  1. In Windows File Explorer, locate your Local sites here: PC → [your hard drive] → Users → [your username] → Local Sites.
  2. Right click each of your sites folders, and choose “Compress to ZIP file” to make a zip file from each site folder.
  3. Drag each zip file into Local to import it (you may have to give it a new name).
1 Like