I'm following installation instructions at Particle docs > GUIDE > 4. Command Line.
I installed node.js (probably I installed v4.4.7 )
But next installation instruction fails....
npm install -g particle-cli
npm should be run outside of the node repl, in your normal shell.
(Press Control-D to exit.)