CLI Upgrade not working

I just upgraded my Particle-CLI and I am getting this message:

Evans-MacBook-Pro:~ evanchavez$ particle serial wifi
! Error loading module ‘serialport’: The module '/usr/local/lib/node_modules/particle-cli/node_modules/serialport/build/Release/serialport.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 46. This version of Node.js requires
NODE_MODULE_VERSION 51. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install).
Please reinstall the CLI again using npm install -g particle-cli

I reinstalled both Node.js / npm and also the CLI and still receiving this message…

This might help:

You might want to give npm install -g serialport a shot as well.

1 Like

It worked! Thanks for your reply I appreciate it.