[ISSUE] error after 1.1.0-12d6799 Update

I receive the following error message whenever I run any particle command from the CLI, this happened on 2 different macOS machines today (both intel). Looks like it occurred after an automatic update.

I tried restarting and re-installing via the bash command, neither changed the error. Any help would be appreciated.

errors and system information below:

❯ particle version ─╯
! Error in particle-cli:
! Cannot find module ‘./src/lib/platform’
Require stack:

  • /Users/xxxx/.particle/node_modules/particle-cli/settings.js
  • /Users/xxxx/.particle/node_modules/particle-cli/dist/app/cli.js
  • /Users/xxxx/.particle/node_modules/particle-cli/dist/index.js
  • /Users/xxxx/.particle/[eval]
    ! See /Users/xxxx/.particle/error.log for more info.

---------------------------partial contents of error.log--------------------------------

2022/07/19 15:32:11 Time since last update 4h3m3.761572993s, update in block
2022/07/19 15:32:11 Time since last update 4h3m3.762053993s, update in background
2022/07/19 15:32:12 Manifest version 1.1.0-12d6799, Installed version 1.1.0-12d6799
2022/07/19 15:32:12 Updating CLI…
2022/07/19 15:32:19 done. Updated 1 package.
2022/07/19 15:32:19 Time since last update 7.156785588s, update in background
2022/07/19 15:32:45 Time since last update 33.801904588s, update in block
2022/07/19 22:32:45 internal/modules/cjs/loader.js:985
throw err;
^

Error: Cannot find module ‘./src/lib/platform’
Require stack:

  • /Users/xxxx/.particle/node_modules/particle-cli/settings.js
  • /Users/xxxx/.particle/node_modules/particle-cli/dist/app/cli.js
  • /Users/xxxx/.particle/node_modules/particle-cli/dist/index.js
  • /Users/xxxx/.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 Object. (/Users/xxxx/.particle/node_modules/particle-cli/settings.js:28:24)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    2022/07/19 15:32:45 Time since last update 33.950227588s, update in background
    2022/07/19 15:33:12 Time since last update 1m0.174054588s, update in block
    2022/07/19 22:33:12 internal/modules/cjs/loader.js:985
    throw err;
    ^

Error: Cannot find module ‘./src/lib/platform’
Require stack:

  • /Users/xxxx/.particle/node_modules/particle-cli/settings.js

Running on macOS 12.4
64 bit Intel processor
CLI installed via “bash <( curl -sL https://particle.io/install-cli )”
❯ zsh --version ─╯
zsh 5.9 (x86_64-apple-darwin21.3.0)
Particle Hardware: Photon & Boron


❯ ls -a ~/.particle ─╯
total 1400
drwxr-xr-x 13 x staff 416 Jul 19 15:32 .
drwxr-xr-x+ 71 x staff 2272 Jul 19 16:13 …
drwxr-xr-x 6 x staff 192 Jul 19 15:32 .npm-cache
-rw-r–r-- 1 x staff 52 Jul 19 15:48 autoupdate
-rw-r–r–@ 1 x staff 172481 Jul 19 16:13 error.log
drwxr-xr-x 9 x staff 288 Jun 9 2021 node-v12.16.1-darwin-x64
drwxr-xr-x 4 x staff 128 Jul 19 15:32 node_modules
-rw-r–r-- 1 x staff 469622 Jul 19 15:32 package-lock.json
-rw------- 1 x staff 142 Jul 11 09:42 particle.config.json
-rw-r–r-- 1 x staff 59 Jul 19 15:32 plugin-cache.json
-rw------- 1 x staff 41 Jul 19 15:22 profile.json
drwxr-xr-x 3 x staff 96 Jun 9 2021 tmp
drwxr-xr-x 7 x staff 224 Jun 9 2021 toolchains

Edit: removed user name

Update:

I was able to resolve this issue by deleting the ~/bin/particle file and the entire ~/.particle folder then reinstall via the bash command / script.

You can close or delete this post.

we hit a bump with the v3.3.0 release - should be resolved now. please let us know if not. thanks for your patience :pray::+1:

1 Like

Excellent, thank you so much

1 Like

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