Hi, I’ve been trying to flash firmware to my Photo through CLI. Which worked a treat. But now it’s bricked for some reason, can’t figure out why. Tried a heap of things, now reinstalling all software to see if it’s a versioning thing. Alas, I get this after installing node JS and updating minimatch - any guidance, tips welcome
lottehasss-MacBook-Pro:~ lottehass$ particle setup
Error loading command /usr/local/lib/node_modules/particle-cli/commands/SerialCommand.js Error: Module version mismatch. Expected 48, got 46.
_ __ _ _ _
| '_ \ __ _ _ __| |_(_) ___| | ___
| |_) |/ _` | '__| __| |/ __| |/ _ \
| __/| (_| | | | |_| | (__| | __/
|_| \__,_|_| \__|_|\___|_|\___|
https://particle.io
> Setup is easy! Let's get started...
> It appears as though you are already logged in as xxx@xxxxxxxx.org
? Would you like to log in with a different account? No
! PROTIP: Hold the MODE/SETUP button on your device until it blinks blue!
! PROTIP: Please make sure you are connected to the internet.
readline.js:982
throw err;
^
TypeError: Cannot read property 'findDevices' of undefined
at SetupCommand.findDevice (/usr/local/lib/node_modules/particle-cli/commands/SetupCommand/index.js:293:8)
at accountStatus (/usr/local/lib/node_modules/particle-cli/commands/SetupCommand/index.js:150:3)
at switchChoice [as completed] (/usr/local/lib/node_modules/particle-cli/commands/SetupCommand/index.js:115:4)
at PromptUI.onCompletion (/usr/local/lib/node_modules/particle-cli/node_modules/inquirer/lib/ui/prompt.js:57:10)
at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (/usr/local/lib/node_modules/particle-cli/node_modules/rx-lite/rx.lite.js:1550:12)
at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/usr/local/lib/node_modules/particle-cli/node_modules/rx-lite/rx.lite.js:1489:14)
at Subject.onCompleted (/usr/local/lib/node_modules/particle-cli/node_modules/rx-lite/rx.lite.js:5871:19)
at Subject.tryCatcher (/usr/local/lib/node_modules/particle-cli/node_modules/rx-lite/rx.lite.js:63:31)
at AutoDetachObserverPrototype.completed (/usr/local/lib/node_modules/particle-cli/node_modules/rx-lite/rx.lite.js:5796:56)
at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/usr/local/lib/node_modules/particle-cli/node_modules/rx-lite/rx.lite.js:1489:14)
lottehasss-MacBook-Pro:~ lottehass$