I've noticed an uptick in CLI-related posts lately that all come back to the same issue- updating your node version to Node 16. Julien goes into more detail in this post, but the gist is that we recently updated the CLI installer to use Node 16.
Here's a quick guide on how to get back on track:
Clear Out Old CLI Files: Check your CLI files directory (Mac OS / Linux:
C:\Users\<your username>\AppData\Local\particle) and get rid of any old and outdated files. If you see any of these files, delete them:
node-v<version>-<os>-<cpu>(Examples: node-v16.20.0-windows-x64, node-v16.20.0-darwin-x64, or node-v16.20.0-linux-x64)
Run the Update Command: Once your old files are cleared out, give the update command another shot:
particle update-cli. It should smoothly update your CLI to the latest version.
- Ask for Help: If problems persist even after following these steps, remember that you're part of a wonderful community here. Tag me and let me know what's going on.