Particle-cli node.js 9.x.x not working

C:\Users\David Carlson>particle setup
! Error loading module ‘serialport’: The module '\?\C:\Users\David Carlson\AppD
ata\Roaming\npm\node_modules\particle-cli\node_modules\serialport\build\Release
serialport.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 51. This version of Node.js requires
NODE_MODULE_VERSION 59. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
Please reinstall the CLI again using npm install -g particle-cli

nodejs.org says to update to the latest node.js because of security so i did now my particle-cli no longer works?

1 Like

Same problem here, any solution found?

1 Like

thanks for posting, now I have an inkling of what may be wrong with my CLI!!!

:confounded:

for some reason, the path to particle.exe seems to be missing.
if i use “particle.exe”
instead of just particle it works.
i have a feeling that if i was in the .particle directory it may work as well.

but i did get node.js cmd prompt and particle-cli to work together

Interesting, I have to say I finally gave in and rolled back to node 8.x which seems to work fine.