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