Particle Photon. I have Particle Workbench installed on two computers. On one I can flash fine via USB. On the other I get the verbiage below. I’ve tried re-installing the CLI and even VS Code, no luck. I’d be grateful for any suggestions, thanks.
> Executing task: make -f 'C:\Users\XXX\.particle\toolchains\buildscripts\1.6.1\Makefile' flash-user -s <
Cannot find module 'particle-usb'
make: *** [C:\Users\XXX\.particle\toolchains\buildscripts\1.6.1\Makefile:23: dfu] Error 1
The terminal process terminated with exit code: 2
Press any key to close the terminal.
I ran Particle: Audit Environment, output is:
particle update-cli
Updating CLI… no plugins to update.
PS C:\Users\XXX\Source\Repos\BedJitterTest\BedJitterTest>
i think you meant Particle: Update CLI - i assume you are still hitting the Cannot find module 'particle-usb' error?
if so, you can try the following:
open VSCode
open windows file explorer
enter %appdata% into the address bar and press the <enter> key
click into the “Local > particle” folder
select the node_modules and .npm-cache folders, right-click > “Delete”
go back to VSCode and run the Particle: Update CLI command
at this point you should see the CLI dependencies be reinstalled (log will show particle: Installing plugins..., it’ll take a bit for the process to finish). once that completes, try running:
particle login
…follow the prompts and sign-in. then:
particle usb dfu
…confirm your device enters dfu-mode (flashing yellow). then:
particle usb reset
…confirm your device restarts and reconnects to the cloud (breathes cyan).
if you run into errors, please share them here along with the step where you hit the error.
What is particle --version telling you?
What OS?
Have you tried uninstalling/reinstalling CLI?
On Windows npm is not meant to be used to update CLI, rather use particle update-cli.
You may have multiple instances of CLI installed, make sure to only have one on your machine.
Yes, so Checking for two nodejs in Control Panel -> Program features- Nodejs 8.11 click on uninstall and then open command line to check if npm --version or node --version gets a response. Hopefully, that would solve it also gcc-arm I have two versions 5.13 and 6.1 so perhaps that may be causing it as well. Thanks
van a disco local c, usuarios, luego a su usuario
2.activan mostrar archivos ocultos
van a la caperta app data
4.Eliminan la carpeta llamada particle
5.van a panel de control y eliminan node.js si lo tienen si no saltan este paso
abren visual studio
7.oprimen cntrl+shift(arriba del ctrol)+p
8.escriben particle:update
les aparecera una pestaña en el visual studio en la que orpimen clean
10.cierran y vuelven abrir y listo
11.luego activan el modo dfu para flashear el particle por cable al oprimir los botones de setup y reset despues de dos segundos sueltan el reset
y mantienen oprimido el setup hasta que el led quede en amarillo
escriben particle:compile
13.escriben particle:flash(local)
y listo les debe aparecer done y flash succesfull