CLI update fails with: Unexpected end of JSON

I am trying to update/install particle CLI using “npm install -g particle-cli” from a windows command line, but it fails with this error:

npm ERR! Unexpected end of JSON input while parsing near ‘…^6.9.2",“form-data”:"’

I tried uninstalling CLI , now I have no CLI installed.
I tried updating node.js but that didnt help

On Windows you should install CLI with the Windows installer, and when you want to update you’d run particle update-cli

works thanks. so simple.

1 Like