Can't install particle CLI in windows


#1

Hi,

I need your help.

I am trying to install particle Cli in windows 10 and it shows me the following using the installer:

Output folder: C:\Users\aquil\AppData\Local\particle
Downloading build information
Create folder: C:\Users\aquil\AppData\Local\particle\bin
Downloading CLI executable
Rename: C:\Users\aquil\AppData\Local\Temp\nse8598.tmp->C:\Users\aquil\AppData\Local\particle\bin\particle.exe
Downloading and installing CLI dependencies. This may take several minutes…
particle: Adding dependencies… done
particle: Installing plugins…
_ ! Error reading plugin: particle-cli_
_ ! exit status 1_
_ ! module.js:327_
_ ! throw err;_
_ ! ^_
_ ! _
_ ! Error: Cannot find module ‘particle-cli/package.json’_
_ ! at Function.Module.resolveFilename (module.js:325:15)
_ ! at Function.Module.load (module.js:276:25)
_ ! at Module.require (module.js:353:17)_
_ ! at require (internal/module.js:12:17)_
_ ! at [eval]:3:15_
_ ! at Object.exports.runInThisContext (vm.js:54:17)_
_ ! at Object. ([eval]-wrapper:6:22)_
_ ! at Module.compile (module.js:397:26)
_ ! at node.js:611:27_
_ ! at nextTickCallbackWith0Args (node.js:452:9)_
Output folder: C:\Users\aquil\AppData\Local\particle\bin
Extract: dfu-prefix.exe… 100%
Extract: dfu-suffix.exe… 100%
Extract: dfu-util-static.exe… 100%
Extract: dfu-util.exe… 100%
Extract: libusb-1.0.dll… 100%
Output folder: C:\Users\aquil\AppData\Local\particle
Adding CLI to path
Add to PATH: C:\Users\aquil\AppData\Local\particle\bin
Extract: C:\Users\aquil\AppData\Local\Temp\ParticleDriversSetup.exe… 100%
Installing USB drivers
ExecShell: C:\Users\aquil\AppData\Local\Temp\ParticleDriversSetup.exe
Downloading OpenSSL
Installing OpenSSL
Created uninstaller: C:\Users\aquil\AppData\Local\particle\Uninstall.exe

Run “particle setup” in the command line to start using the Particle CLIline to start using the Particle CLI

When I try to execute it, I mark this error.

ph

I tried in 3 computers: 2 with windows 10 and one with windows 7 and in all that it marks that error.

Could you help me? :disappointed_relieved:

Thanks


#2

How was installed the particle-cli? Perhaps that would be a permission/scope issue.


#3

Hi,

Using the “Particle CLI” installer I run it as administrator.


#4

That means that you didn’t do

npm install -g particle-cli

?


#5

yes but it marks me errors.


#6

I’m not a wondows user so as far as I see, this solve (workaround) the self signed cert isue

SETLOCAL
SET npm_config_strict-ssl=false
npm install npm -g --ca=null
npm --version
npm install -g particle-cli
ENDLOCAL

#7

Have you downloaded the most recent Windows CLI Installer?
Particle had some issues a few days back with Windows installations/updates which should have been fixed.
If the issue persists with the most recent installer, we may need to ping someone.

Under Windows the use of npm install is not encouraged anymore due to frequent dependency issues, this is why the installer was created to prevent such things from happening.


#8

Download the Windows CLI Installer and run it to install the Particle CLI, the device drivers and the dependencies that the CLI needs.

You’ll need to open the command prompt for this next part. You can also use Powershell or a similar command line tool if that is what you are used to.

Windows CLI Installer :- https://binaries.particle.io/cli/installer/windows/ParticleCLISetup.exe


#9

Hi,

I already installed the version of the link that @Salmanfarisvp put.

But I still have problems, I tried again in 2 PC’s, one with node installed and another without it.

In the computer that has node it marked these errors.

Output folder: C:\Users\aquil\AppData\Local\particle
Downloading build information
Create folder: C:\Users\aquil\AppData\Local\particle\bin
Downloading CLI executable
Rename: C:\Users\aquil\AppData\Local\Temp\nsmD4B4.tmp->C:\Users\aquil\AppData\Local\particle\bin\particle.exe
Downloading and installing CLI dependencies. This may take several minutes…
particle: Adding dependencies… done
particle: Adding dependencies… done
particle: Installing plugins…
! module.js:327
! throw err;
! ^
!
! Error: Cannot find module ‘C:\Users\aquil\AppData\Local\particle\node-v5.4.1-windows-x64\lib\node_modules\npm\cli.js’
! at Function.Module._resolveFilename (module.js:325:15)
! at Function.Module._load (module.js:276:25)
! at Function.Module.runMain (module.js:429:10)
! at startup (node.js:139:18)
! at node.js:999:3
module.js:327
throw err;
^

Error: Cannot find module 'C:\Users\aquil\AppData\Local\particle\node-v5.4.1-windows-x64\lib\node_modules\npm\cli.js’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Function.Module.runMain (module.js:429:10)
at startup (node.js:139:18)
at node.js:999:3

! exit status 1

! Error installing package.
! module.js:327
! throw err;
! ^
!
! Error: Cannot find module ‘C:\Users\aquil\AppData\Local\particle\node-v5.4.1-windows-x64\lib\node_modules\npm\cli.js’
! at Function.Module._resolveFilename (module.js:325:15)
! at Function.Module._load (module.js:276:25)
! at Function.Module.runMain (module.js:429:10)
! at startup (node.js:139:18)
! at node.js:999:3
!
! Try running again with GODE_DEBUG=info to see more output.
Output folder: C:\Users\aquil\AppData\Local\particle\bin
Extract: dfu-prefix.exe… 100%
Extract: dfu-suffix.exe… 100%
Extract: dfu-util-static.exe… 100%
Extract: dfu-util.exe… 100%
Extract: libusb-1.0.dll… 100%
Output folder: C:\Users\aquil\AppData\Local\particle
Adding CLI to path
Add to PATH: C:\Users\aquil\AppData\Local\particle\bin
Extract: C:\Users\aquil\AppData\Local\Temp\ParticleDriversSetup.exe… 100%
Installing USB drivers
ExecShell: C:\Users\aquil\AppData\Local\Temp\ParticleDriversSetup.exe
Downloading OpenSSL
Installing OpenSSL
Created uninstaller: C:\Users\aquil\AppData\Local\particle\Uninstall.exe

Run “particle setup” in the command line to start using the Particle CLI

in the other, it shows me the same mistakes of my first post.

Any Idea? :sleepy:


#10

We can ping @jvanier who is in charge of CLI Installer


#11

I raised a issue in github :- https://github.com/particle-iot/particle-cli/issues/439


#12

Did the suggestion given in the issue reply help?


#13

I already tested it and it gives me the same output as @ Salmanfarisvp.

Captura

After that, I tried to install it again but the error is the same.

I try to figure out why this happens but I don’t even know where to start :sweat_smile: