Mod edit (@harrisonhjones): Solution: Reinstall the Particle CLI
I just updated to latest npm (3.10.10) and node (7.3.0) and it’s now impossible to configure my Photon’s. Running “particle setup” and accepting the logged in users produces this crash:
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 module.exports.switchChoice [as completed] (/usr/local/lib/node_modules/particle-cli/commands/SetupCommand/index.js:115:4)
at module.exports.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/inquirer/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/inquirer/node_modules/rx-lite/rx.lite.js:1489:14)
at Subject.onCompleted (/usr/local/lib/node_modules/particle-cli/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:5871:19)
at Subject.tryCatcher (/usr/local/lib/node_modules/particle-cli/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:63:31)
at AutoDetachObserverPrototype.completed (/usr/local/lib/node_modules/particle-cli/node_modules/inquirer/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/inquirer/node_modules/rx-lite/rx.lite.js:1489:14)
The Particle mobile app is still not updated, so it’s also of no use. Any suggestions?