Can't run in Windows

Cant’t run the local in windows. Got the error:

PS C:\\Users\\yulis\\AppData\\Local\\Programs\\Local>
5.11.2025, 14:05:56 \[debug\] \[main\] ErrorReporting: Error-reporting disabled.
5.11.2025, 14:05:57 \[debug\] \[main\] DeepLinkService: Registered deep link route: flywheelAuth – {“pattern”:“/^flywheel-local:\\/\\/app\\/view\\/foo/”,“description”:“General Flywheel authentication handler”}
5.11.2025, 14:05:57 \[error\] \[main\] undefined: %%userDataPath%%\\sites.json: Unexpected end of JSON input – {“stack”:“SyntaxError: %%userDataPath%%\\sites.json: Unexpected end of JSON input\\n    at JSON.parse ()\\n    at Object.readFileSync (%%appPath%%\\node_modules\\jsonfile\\index.js:63:17)\\n    at UserData.get (%%appPath%%\\main\\app\\UserData.js:60:52)\\n    at SiteDataService.getSites (%%appPath%%\\main\\sites\\SiteDataService.js:226:42)\\n    at SiteDataService.reformatSites (%%appPath%%\\main\\sites\\SiteDataService.js:440:28)\\n    at SiteData.reformatSites (%%appPath%%\\main\\sites\\SiteData.js:39:39)\\n    at DataUpgrader.runUpgrades (%%appPath%%\\main\\app\\dataUpgrader.js:11:28)\\n    at Object. (%%appPath%%\\main\\main.js:159:24)\\n    at Module.\_compile (node:internal/modules/cjs/loader:1714:14)\\n    at Module.\_extensions..js (node:internal/modules/cjs/loader:1848:10)”}
5.11.2025, 14:05:57 \[debug\] \[main\] DeepLinkService: Registered deep link route: hubAuthKickoff – {“pattern”:“/kickOffHubAuth=true/”,“description”:“Kickoff Hub authentication flow”}
5.11.2025, 14:05:57 \[debug\] \[main\] DeepLinkService: Registered deep link route: wpeOAuthSuccess – {“pattern”:“/wpeOAuthSuccess=true/”,“description”:“Handle WPE OAuth success callback”}
5.11.2025, 14:05:57 \[debug\] \[main\] DeepLinkService: Registered deep link route: wpeOAuthLogout – {“pattern”:“/wpeOAuthLogout=true/”,“description”:“Handle WPE OAuth logout callback”}

Hey @Yuli , welcome to the Local forums!

It looks like some of the files that Local uses to store site information is corrupted, in particular, the sites.json and maybe, the sites-organization.json files.

If Local will not start and you see lines such as this in your Local logs:

%%userDataPath%%\\sites.json: Unexpected token… is not valid JSON

You can try to restore and repair those files using this process:

  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).

Can you give that a try and let us know how it goes?