Hello, I am trying to install cht-conf on windows but there is an error

npm install -g cht-conf

npm ERR! Unexpected end of JSON input while parsing near '..."integrity":"sha512-e'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2022-10-20T03_22_57_953Z-debug.log

@Stephen_Mhuli - welcome to the forum! I see this is your first post - thanks for letting us know about your issue - we’d love to help.

In case it’s helpful, there’s a good thread about running the CHT in windows for app development over here. You might check that out in case it’s helpful.

Next up, can you respond with some info about your environment:

  • How are you running npm - in WSL1 OR WSL2 or some other method?
  • What version of npm do you have? You can check with npm -v. When I’m on Node 12, I have npm version 6.14.16, when I’m on Node 16, I’m on version 8.15.0.
  • Are you able to install other packages with npm?


Thank you @mrjones I have solved the issue, I was using node 12 and I decided to use node 16, the questions you asked helped me solve the problem.

1 Like

@Stephen_Mhuli - wonderful - glad you were able to solve it!

1 Like