Cannot install Particle CLI on Win 10

Hello,

I am trying to install Particle CLI but I get the below error messages during install. I can verify that nothing exists below the directory C:\Users\pastirc\AppData\Local\particle\node-v12.16.1-windows-x64\lib\node_modules. Some things I tried is below.

My firewall is disabled.
Ran as administrator and without
Followed these instructions https://docs.particle.io/tutorials/developer-tools/cli/#using-windows
Followed these instructions https://community.particle.io/t/particle-official-windows-10-full-cli-and-dfu-setup/18309

Current node and npm versions are below (I tried latest versions then when with the ones listed in the instructions)

C:\WINDOWS\system32>node -v
v0.12.2

C:\WINDOWS\system32>npm -v
2.7.4

The error I get is:

Output folder: C:\Users\pastirc\AppData\Local\particle
Downloading build information
Create folder: C:\Users\pastirc\AppData\Local\particle\bin
Downloading CLI executable
Rename: C:\Users\pastirc\AppData\Local\Temp\nsfB0F7.tmp->C:\Users\pastirc\AppData\Local\particle\bin\particle.exe
Downloading and installing CLI dependencies. This may take several minutes…
particle: Adding dependencies…
! Error rebuilding packages.
! internal/modules/cjs/loader.js:985
! throw err;
! ^
!
! Error: Cannot find module ‘C:\Users\pastirc\AppData\Local\particle\node-v12.16.1-windows-x64\lib\node_modules\npm\bin\npm-cli.js’
! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
! at Function.Module._load (internal/modules/cjs/loader.js:864:27)
! at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
! at internal/main/run_main_module.js:18:47 {
! code: ‘MODULE_NOT_FOUND’,
! requireStack:
! }
!
! Try running again with GODE_DEBUG=info to see more output.
done
particle: Installing plugins…
! internal/modules/cjs/loader.js:985
! throw err;
! ^
!
! Error: Cannot find module ‘C:\Users\pastirc\AppData\Local\particle\node-v12.16.1-windows-x64\lib\node_modules\npm\bin\npm-cli.js’
! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
! at Function.Module._load (internal/modules/cjs/loader.js:864:27)
! at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
! at internal/main/run_main_module.js:18:47 {
! code: ‘MODULE_NOT_FOUND’,
! requireStack:
! }
internal/modules/cjs/loader.js:985
throw err;
^

Error: Cannot find module ‘C:\Users\pastirc\AppData\Local\particle\node-v12.16.1-windows-x64\lib\node_modules\npm\bin\npm-cli.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
}

! exit status 1

! Error installing package.
! internal/modules/cjs/loader.js:985
! throw err;
! ^
!
! Error: Cannot find module ‘C:\Users\pastirc\AppData\Local\particle\node-v12.16.1-windows-x64\lib\node_modules\npm\bin\npm-cli.js’
! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
! at Function.Module._load (internal/modules/cjs/loader.js:864:27)
! at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
! at internal/main/run_main_module.js:18:47 {
! code: ‘MODULE_NOT_FOUND’,
! requireStack:
! }
!
! Try running again with GODE_DEBUG=info to see more output.
Output folder: C:\Users\pastirc\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\pastirc\AppData\Local\particle
Adding CLI to path
Downloading USB drivers
Installing USB drivers
ExecShell:
Downloading OpenSSL
Installing OpenSSL
Adding OpenSSL to path
Created uninstaller: C:\Users\pastirc\AppData\Local\particle\Uninstall.exe

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

Hi Chris- Welcome to the particle community. Have you tried using the Windows CLI installer? If not, I suggest giving it a shot as it often works when npm hangs.

Colleen,

Thanks for the reply. The first instruction I linked, Command Line | Tutorials | Particle is for installing using the Windows Installer which is what I did originally. That said since my original post I figured out it is most likely an Antivirus issue (only thing I can think of) as it installed on my personal W10 laptop ok. Disabling AV on my company laptop is not an option however.

As a further update, I worked with the SecOps dept and was able to get them to add exceptions in for McAfee and was able to get the installer to complete without issue. Thanks for assisting.

Thank you for the update I’m glad it is now working on your machine!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.