I am trying to use the Particle CLI to get my device particle ID. DFU successfully flashed new firmware, but with the device in listening mode (blinking blue), and running particle identify, I encountered the following error. This error was reproduced below with particle setup:
_ __ _ _ _
| '_ \ __ _ _ __| |_(_) ___| | ___
| |_) |/ _` | '__| __| |/ __| |/ _ \
| __/| (_| | | | |_| | (__| | __/
|_| \__,_|_| \__|_|\___|_|\___|
https://particle.io
> Setup is easy! Let's get started...
> It appears as though you are already logged in as justice@amper.xyz
? Would you like to use this account? Yes
Please reinstall the CLI again using npm install -g particle-cli
! PROTIP: Hold the MODE/SETUP button on your device until it blinks blue!
! PROTIP: Please make sure you are connected to the internet.
| Now to find your device(s)...(node:6157) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'list' of undefined
at SerialCommand.findDevices (/usr/local/lib/node_modules/particle-cli/dist/cmd/serial.js:52:14)
at SetupCommand.findDevice (/usr/local/lib/node_modules/particle-cli/dist/cmd/setup.js:247:10)
at accountStatus (/usr/local/lib/node_modules/particle-cli/dist/cmd/setup.js:129:4)
at switchChoice (/usr/local/lib/node_modules/particle-cli/dist/cmd/setup.js:99:5)
at <anonymous>
(node:6157) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6157) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
\ Now to find your device(s)...
I have tried running that npm command, I have uninstalled and reinstalled particle-cli, I have even uninstalled and reinstalled npm itself, but I continuously get that same error. I have tried different usb ports and the same result.
How do I fix this? This is critical functionality for me and I need this working ASAP.
EDIT: This has been working for me before, and was working Friday. I haven’t touched my machine since then and it stopped working suddenly