Error message when installing spark-cli on MAC

When i try to install Spark-cli on IMAC with the command "sudo npm install -g spark-cli" I get below error message. Any idea?

npm http 304 https://registry.npmjs.org/wordwrap

serialport@1.3.1 install /usr/lib/node_modules/spark-cli/node_modules/serialport
node-gyp rebuild

/usr/lib/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm ERR! serialport@1.3.1 install: node-gyp rebuild
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the serialport@1.3.1 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "spark-cli"
npm ERR! cwd /Users/Ruedi
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.6
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/hoek
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Ruedi/npm-debug.log
npm ERR! not ok code 0