Issues with the CLI update on Mac

The Particle CLI worked fine until I recently updated the Particle CLI on my Mac using “sudo npm update -g particle-cli”. I now receive the following with any CLI command. There must be something simple I’m missing. Any help is appreciated.

Home-iMac:~ Joe$ particle login
Potentially unhandled rejection [1] /usr/local/lib/node_modules/particle-cli/node_modules/inquirer/node_modules/chalk/index.js:2
const escapeStringRegexp = require(‘escape-string-regexp’);
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/usr/local/lib/node_modules/particle-cli/node_modules/inquirer/lib/objects/separator.js:2:13)
at Module._compile (module.js:460:26)
at Object.Module._extensions…js (module.js:478:10)

Try: sudo npm uninstall -g particle-cli and test particle on the command line to see if it still works.

If that is the case, maybe the installation has some issue and you should do a which particle and find the path where the binary is located, delete it and do a sudo npm install -g particle-cli again.