CLI error strikes again

dasdas

I’ll have a google and see if I can sort this! :wink:

The error log contains this

- C:\Users\user1\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.<anonymous> ([eval]-wrapper:10:26)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at evalScript (internal/process/execution.js:94:25)
2020/07/07 11:40:33 Time since last update 1512h10m35.0766021s, update in background
2020/07/07 11:40:33 Time since last update 1512h10m35.1056038s, update in block
2020/07/07 11:40:33 Time since last update 1512h10m35.1066038s, update in background
2020/07/07 11:40:34 Manifest version 1.1.0-12d6799, Installed version 1.1.0-12d6799
2020/07/07 11:40:34 Updating CLI... 
2020/07/07 11:41:11 done. Updated 1 package.
2020/07/07 11:41:11 Time since last update 37.9751721s, update in background

so I’m kind of wondering if it’s updating as I type…

I’m kind of wondering if it’s updating as I type

it just may be. if you get stuck, try this:

Thanks. I uninstalled it and reinstalled it using the installer and that sorted it. Seems to happy now and then.

1 Like

This is an annoyingly common issue and needs to be resolved.

1 Like

I have read and re-read and followed so many suggestions, I'm now totally lost and asking for help. I have a MacBook Air i7 running Big Sur OS 11.7.10 and a MacBook M1, both have the same problem.

I followed the steps suggested in this topic and got this:

johngoode@Johns-MacBook-Air ~ % particle update-cli
particle: Adding dependencies...
▸ Get "https://binaries.particle.io/node/v16.20.0/node-v16.20.0-darwin-x64.tar.gz": dial tcp: lookup binaries.particle.io: i/o timeout

▸ Error rebuilding packages.

▸ Try running again with GODE_DEBUG=info to see more output.
done
particle: Installing plugins...

▸ fork/exec bin/node: no such file or directory
particle: Installing plugins (retrying)...
▸ Error installing package.

▸ Try running again with GODE_DEBUG=info to see more output.
johngoode@Johns-MacBook-Air ~ %

I have an internet connection. Two different Mac's running two different OS versions. But getting this same issue.

Please help…

@Support can you take a look please?

It could be that there is a difference between the node versions in the command and in your directory. Can you try installing node 16 following the instructions here and try again?

I followed the instructions:

johngoode@Johns-MacBook-Air ~ % bash <( curl -sL https://particle.io/install-cli )

PARTICLE CLI SETUP...

:::: Installing the Particle CLI for darwin to "/Users/johngoode/bin/particle"
:::: Done!
:::: Installing dependencies
:::: Done!
:::: Success!
:::: The Particle CLI has been installed to: "/Users/johngoode/bin"
:::: Your "/Users/johngoode/.zprofile" file has been updated to properly set $PATH
:::: If you previously installed the CLI with npm, run "npm uninstall -g particle-cli"


** YOU MUST CLOSE AND REOPEN YOUR TERMINAL BEFORE CHANGES TAKE EFFECT **


johngoode@Johns-MacBook-Air ~ % npm uninstall -g particle-cli

up to date in 796ms
johngoode@Johns-MacBook-Air ~ %

========================

Restart Terminal

========================

Last login: Thu Sep 21 18:46:01 on ttys000
johngoode@Johns-MacBook-Air ~ % particle update-cli
particle: Adding dependencies...
▸ Get "https://binaries.particle.io/node/v16.20.0/node-v16.20.0-darwin-x64.tar.gz": dial tcp: lookup binaries.particle.io: i/o timeout

▸ Error rebuilding packages.

▸ Try running again with GODE_DEBUG=info to see more output.
done
particle: Installing plugins...

▸ fork/exec bin/node: no such file or directory
particle: Installing plugins (retrying)...
▸ Error installing package.

▸ Try running again with GODE_DEBUG=info to see more output.
johngoode@Johns-MacBook-Air ~ %

Some additional information…

johngoode@Johns-MacBook-Air bin % npm -v
8.19.4
johngoode@Johns-MacBook-Air bin % node -v
v16.20.0
johngoode@Johns-MacBook-Air bin % particle login
particle: Adding dependencies...
▸ Get "https://binaries.particle.io/node/v16.20.0/node-v16.20.0-darwin-x64.tar.gz": dial tcp: lookup binaries.particle.io: i/o timeout

▸ Error rebuilding packages.

▸ Try running again with GODE_DEBUG=info to see more output.
done
particle: Installing plugins...

▸ fork/exec bin/node: no such file or directory
particle: Installing plugins (retrying)...
▸ Error installing package.

▸ Try running again with GODE_DEBUG=info to see more output.
johngoode@Johns-MacBook-Air bin %

Hi @johngoode Are you able to download the file in the error via a browser? Can you try that and check?

1 Like

@johngoode Specifically - can you run curl https://binaries.particle.io/node/v16.20.0/node-v16.20.0-darwin-x64.tar.gz -o binary.tar.gz via the terminal and see if it downloads?
Since this times out at every failure - it's possible something on your network/Mac is blocking it.

1 Like

So grateful to you guys!

johngoode@Johns-MacBook-Air .particle % curl https://binaries.particle.io/node/v16.20.0/node-v16.20.0-darwin-x64.tar.gz -o binary.tar.gz

followed by:

johngoode@Johns-MacBook-Air .particle % tar -xvf binary.tar.gz

That worked!

2 Likes

That's great news!

My next step would have been to nuke the .particle folder and see if that helps. I'm not sure what would have prevented the updater from downloading the binary before the timeout - we'll highlight that in the bug report.