Particle CLI issue

Particle CLI issue.

Hi There,

We are using particle CLI for around 2 years now. Today morning it gave the following error.

C:\Users\ssingh>particle setup
** ! Error in particle-cli:**
** ! Cannot find module ‘particle-cli’**
Require stack:
- C:\Users\ssingh\AppData\Local\particle[eval]
** ! See C:\Users\ssingh\AppData\Local\particle\error.log for more info.**

There is NO eval folder in the specified location. The error file shows this as the last log.

Error: Cannot find module 'particle-cli’
Require stack:
- C:\Users\ssingh\AppData\Local\particle[eval]
** at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)**
** at Function.Module._load (internal/modules/cjs/loader.js:864:27)**
** at Module.require (internal/modules/cjs/loader.js:1044:19)**
** at require (internal/modules/cjs/helpers.js:77:18)**
** at [eval]:32:2**
** at Script.runInThisContext (vm.js:120:20)**
** at Object.runInThisContext (vm.js:311:38)**
** at Object. ([eval]-wrapper:10:26)**
** at Module._compile (internal/modules/cjs/loader.js:1158:30)**
** at evalScript (internal/process/execution.js:94:25)**
2022/01/04 12:37:32 Time since last update 1m5.4686885s, update in background

Please help me resolve this. I have tried to uninstall and reinstall the CLI, same results.

It looks like this module needs to be reinstalled. You can use npm to do so and add -g for a global install.

these troubleshooting steps might be helpful:

1 Like

Thankyou, I was able to fix it.

1 Like