kaorahi / lizgoban

Leela Zero & KataGo visualizer
GNU General Public License v3.0
170 stars 29 forks source link

SyntaxError: Unexpected token K in JSON #25

Closed kaorahi closed 5 years ago

kaorahi commented 5 years ago

(from https://github.com/kaorahi/lizgoban/issues/6#issuecomment-505676942)

This error indicates something wrong in *.json. You will need to replace every \ with \\ (or / simply) in the present case.

ozymandias8 commented 5 years ago

Edit: This worked.

I did not understand that I had to navigate to the LizGoban folder and run npm install from the command line. That is likely obvious for people familiar with this type of software, but since I have no experience I did not know what to do.

You might want to add more explicit instructions for dumb Windows users like me.

I did receive a warning as follows:

npm WARN @sabaki/sgf@3.4.0 requires a peer of iconv-lite@0.4.x but none is installed. You must install peer dependencies yourself. npm WARN @sabaki/sgf@3.4.0 requires a peer of jschardet@>=1.0 <3 but none is installed. You must install peer dependencies yourself.

kaorahi commented 5 years ago

Thx for the advice. Unfortunately, I cannot write step-by-step instructions by myself since I have no Windows machine.

You can ignore the warnings on iconv-lite and jschardet. https://github.com/SabakiHQ/sgf/issues/4#issuecomment-493634635