Photon not connecting to wifi network [SOLVED]

Hey all,

Having difficulty connecting to a wifi network, tried reinstalling particle-cli and now am getting errors when I try using commands, for instance when running:

particle list

I get:

Error loading command /usr/local/lib/node_modules/particle-cli/commands/SerialCommand.js Error: Module version mismatch. Expected 48, got 14.

And it prevents me from running particle setup wifi, so I can’t connect it…

Any thoughts or suggestions would be appreciated.

What version of Node do you have installed?
Check with:

node -v

particle-cli doent work with the latest version of node, so try using 5.8.0.

curl -fsSLO
sudo installer -pkg node-*.pkg -target /

Thank you @nrobinson2000 – fixed it by installing node version 4.4.5