Hi guys,
yesterday, my Photon, which was working for about 4 months stopped connecting to home wi-fi - green led is flashing constantly. Reset, soft reset doesn’t help.
I performed wi fi reset and wanted to use cli to update the credentials, however cli is not working for me anymore as well. I reinstalled cli, now it shows me this:
user:~ user$ particle
Error loading command /usr/local/lib/node_modules/particle-cli/commands/AccessTokenCommands.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/CloudCommands.js Error: Cannot find module 'serialport'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/ConfigCommand.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/FlashCommand.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/FunctionCommand.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/HelpCommand.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/KeyCommands.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/PublishCommand.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/SerialCommand.js Error: Cannot find module 'serialport'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/SetupCommand Error: Cannot find module 'bl'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/SubscribeCommand.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/UpdateCommand.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/VariableCommand.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/WebhookCommands.js Error: Cannot find module 'brace-expansion'
Error loading command /usr/local/lib/node_modules/particle-cli/commands/WirelessCommand Error: Cannot find module 'brace-expansion'
particle: Unknown command: "help"
Does anyone know what happened and how it can be solved? Thank you
UPD:
cli problem solved, had to clean npm cache. Still interested why Photon stopped connecting to wifi