CLI/Workbench Issues? Try Updating to Node 16

Hi everyone!
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:

  1. Clear Out Old CLI Files: Check your CLI files directory (Mac OS / Linux: ~/.particle, Windows: 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:
  • .npm-cache
  • autoupdate
  • error.log
  • 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)
  • node_modules
  • package.json
  • package-lock.json
  • plugin-cache.json
  • profile.json
  • tmp
  1. 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.
  2. 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.

Thanks!

4 Likes