Cant install CLI on windows 10 PC

I can’t seem to install the CLI on a windows 10 PC

I downloaded and ran the Windows installer. and followed the directions here
https://docs.particle.io/tutorials/developer-tools/cli/

Here is the error I get in powershell when running “particle setup”

PS C:\Users\jham\AppData\Local\particle> particle setup
Program ‘particle.exe’ failed to run: The operation was canceled by the userAt line:1 char:1

  • particle setup

At line:1 char:1

  • particle setup
  •   + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
      + FullyQualifiedErrorId : NativeCommandFailed
    
    

Here is my directory

PS C:\Users\jham\AppData\Local\particle\bin> dir

Directory: C:\Users\jham\AppData\Local\particle\bin

Mode LastWriteTime Length Name


-a---- 4/16/2019 12:48 PM 48991 dfu-prefix.exe
-a---- 4/16/2019 12:48 PM 48406 dfu-suffix.exe
-a---- 4/16/2019 12:48 PM 280795 dfu-util-static.exe
-a---- 4/16/2019 12:48 PM 124040 dfu-util.exe
-a---- 4/16/2019 12:48 PM 199705 libusb-1.0.dll
-a---- 5/30/2019 11:54 AM 7349248 particle.exe

PS C:\Users\jham\AppData\Local\particle\bin>

You shouldn’t need to cd into the directory where CLI got installed to (try doing it from your %HOMEPATH%)
Also try running particle setup via cmd instead of powershell

Thanks, running from cmd worked !

1 Like