I was making MARS Rover. Spending time messing round. Making Reboot.
Uninstall Particle-Cli and install the latest Node JS
npm WARN checkPermissions Missing write access to /Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/commander
npm WARN checkPermissions Missing write access to /Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules
npm WARN checkPermissions Missing write access to /Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/inquirer/node_modules
npm WARN checkPermissions Missing write access to /Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/particle-api-js/node_modules
npm WARN checkPermissions Missing write access to /Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/request/node_modules
npm WARN checkPermissions Missing write access to /Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/string-width/node_modules
npm WARN checkPermissions Missing write access to /Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/wrap-ansi/node_modules
npm ERR! path /Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/commander
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/commander'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/commander'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/Users/xxxxx/.npm-packages/lib/node_modules/particle-cli/node_modules/commander' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxxxx/.npm/_logs/2017-07-08T08_49_07_031Z-debug.log
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> ../../../ie8-polyfill.js
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -> ../../../ie8-polyfill.js
and sudo npm install -g particle-cli
$ particle
-bash: particle: command not found