I updated my CLI to 1.44 this morning in hopes of fixing a different issue (I’ll post that separately after struggling a bit longer), and after running ‘particle doctor -v’ , I get the following error:
C:\Users\xxxxx>particle device doctor -v
The Device Doctor will put your device back into a healthy state
It will:
- Upgrade system firmware
- Flash the default Tinker app
- Reset the device and server keys
- Clear the Wi-Fi settings
Cannot read property 'then' of undefined
TypeError: Cannot read property 'then' of undefined
at DoctorCommand.deviceDoctor (C:\Users\xxxxx\AppData\Local\particle\node_modules\particle-cli\dist\cmd\doctor.js:40:37)
at Object.handler (C:\Users\xxxxx\AppData\Local\particle\node_modules\particle-cli\dist\cli\doctor.js:11:34)
at Promise.resolve.then (C:\Users\xxxxx\AppData\Local\particle\node_modules\particle-cli\dist\app\command-processor.js:284:56)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
at evalScript (bootstrap_node.js:482:13)
at startup (bootstrap_node.js:180:9)
at bootstrap_node.js:625:3
To be fair, I was having issues with CLI 1.43 doctor command, but didn’t note it. Was definitely not this one because I would get to the DFU prompt, etc. I’ll uninstall/reinstall to 1.43 now to see what that was, but just wanted to post this before. Thx