# Error message when installing spark-cli on MAC

**URL:** https://community.particle.io/t/error-message-when-installing-spark-cli-on-mac/3570
**Category:** Troubleshooting
**Created:** [March 22, 2014, 6:22pm UTC](https://community.particle.io/t/error-message-when-installing-spark-cli-on-mac/3570 "2014-03-22T18:22:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ruedi](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ruedi/32/1128_2.png) [@Ruedi](https://community.particle.io/u/Ruedi)
#### Post date: [March 22, 2014, 6:22pm UTC](https://community.particle.io/t/error-message-when-installing-spark-cli-on-mac/3570/1 "2014-03-22T18:22:57Z")

</div>

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](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](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

---

<div class="post-metadata">

### Author: ![KyleG](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/kyleg/32/11077_2.png) [@KyleG](https://community.particle.io/u/KyleG)
#### Post date: [October 12, 2016, 11:46pm UTC](https://community.particle.io/t/error-message-when-installing-spark-cli-on-mac/3570/3 "2016-10-12T23:46:55Z")

</div>


