# New CLI on OS X 10.11 El Capitan \[SOLVED\]

**URL:** https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802
**Category:** Troubleshooting
**Created:** [January 23, 2017, 10:07pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802 "2017-01-23T22:07:29Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![JSchrempp](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jschrempp/32/6396_2.png) [@JSchrempp](https://community.particle.io/u/JSchrempp)
#### Post date: [January 23, 2017, 10:07pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/1 "2017-01-23T22:07:29Z")

</div>

Yesterday the cli was working. Today I tried to update to the new release and I can't get it to install. Seems like a problem I remember having long ago

> Failed at the serialport@4.0.7 install script 'node-pre-gyp install --fallback-to-build'.

I've been through the other notes on this site that I could find.

Could someone tell us the versions of node, npm, Python, and whatever else is needed to get the cli installed?

Thanks,  
Jim

SOLUTION: Thanks to nrobinson2000 run this:

> $ sudo npm install -g --unsafe-perm node-pre-gyp npm serialport particle-cli

---

<div class="post-metadata">

### Author: ![will](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/will/32/23374_2.png) [@will](https://community.particle.io/u/will)
#### Post date: [January 23, 2017, 10:12pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/2 "2017-01-23T22:12:42Z")

</div>

@JSchrempp thanks for the report–we will investigate. Did you try the clean install command?

`npm install -g particle-cli`

cc @mdma @jvanier

---

<div class="post-metadata">

### Author: ![JSchrempp](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jschrempp/32/6396_2.png) [@JSchrempp](https://community.particle.io/u/JSchrempp)
#### Post date: [January 23, 2017, 10:14pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/3 "2017-01-23T22:14:56Z")

</div>

Hi,  
Yes that it what I did except with sudo.  
Here's more, in case this helps...

> npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue  
> npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -\> ../../../ie8-polyfill.js  
> npm WARN deprecated node-uuid@1.4.7: use uuid module instead  
> npm WARN excluding symbolic link test/server/static/ie8-polyfill.js -\> ../../../ie8-polyfill.js  
> /usr/local/bin/particle -\> /usr/local/lib/node\_modules/particle-cli/bin/particle.js

serialport@4.0.7 install /usr/local/lib/node\_modules/particle-cli/node\_modules/serialport  
node-pre-gyp install --fallback-to-build

> env: node: No such file or directory  
> /usr/local/lib  
> └── (empty)

> npm ERR! Darwin 15.6.0  
> npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "particle-cli"  
> npm ERR! node v6.9.4  
> npm ERR! npm v4.1.1  
> npm ERR! file sh  
> npm ERR! code ELIFECYCLE  
> npm ERR! errno ENOENT  
> npm ERR! syscall spawn

> npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build`  
> npm ERR! spawn ENOENT

---

<div class="post-metadata">

### Author: ![JSchrempp](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jschrempp/32/6396_2.png) [@JSchrempp](https://community.particle.io/u/JSchrempp)
#### Post date: [January 23, 2017, 10:21pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/4 "2017-01-23T22:21:44Z")

</div>

And I did try following the instructions here, but that article is really long with a lot of old try this / try that dialog. Hard to know if something is there that would help.

> **[Tutorial: Particle-cli on Mac OSX \[26 Sep 2015\]](http://community.particle.io/t/tutorial-particle-cli-on-mac-osx-26-sep-2015/5225)**
>
> 1.) Install node.js from http://nodejs.org/download/ \[Version 0.10.x would be good\] 2.) Once that is completed, launch your "terminal" run the command sudo npm install -g particle-cli 3.) Once the installation is completed, you test...

---

<div class="post-metadata">

### Author: ![lami](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/lami/32/3576_2.png) [@lami](https://community.particle.io/u/lami)
#### Post date: [January 23, 2017, 10:25pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/5 "2017-01-23T22:25:05Z")

</div>

I have some trouble on Windows 10 too. It tells me to upgrade particle-cli, command runs with no apparent errors (few warnings), but nothing changes.

```
$ particle.exe
particle-cli v1.14.2

! A newer version (1.19.0) of particle-cli is available.
! Upgrade now by running: npm install -g particle-cli

```

After running `npm install -g particle-cli`, nothing changes. I tried to uninstall and reinstall particle-cli, but it installed 1.14.2 version again.

Also:

```
$ npm --version
2.15.1
```

---

<div class="post-metadata">

### Author: ![nrobinson2000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nrobinson2000/32/15624_2.png) [@nrobinson2000](https://community.particle.io/u/nrobinson2000)
#### Post date: [January 23, 2017, 10:36pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/6 "2017-01-23T22:36:33Z")

</div>

What versions of node and npm are you using?

Also, try doing:

```bash
$ sudo npm install -g node-pre-gyp npm serialport particle-cli

```

---

<div class="post-metadata">

### Author: ![JSchrempp](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jschrempp/32/6396_2.png) [@JSchrempp](https://community.particle.io/u/JSchrempp)
#### Post date: [January 23, 2017, 10:37pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/7 "2017-01-23T22:37:27Z")

</div>

What version(s) are known to work?

Versions are listed in the output of my post above.

---

<div class="post-metadata">

### Author: ![nrobinson2000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nrobinson2000/32/15624_2.png) [@nrobinson2000](https://community.particle.io/u/nrobinson2000)
#### Post date: [January 23, 2017, 10:41pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/8 "2017-01-23T22:41:29Z")

</div>

I am on macOS Sierra, and I have node v6.9.1 and npm 4.0.5 and everything is working smoothly.

Have you tried the command I suggested? (6.9.4 should work).

---

<div class="post-metadata">

### Author: ![JSchrempp](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jschrempp/32/6396_2.png) [@JSchrempp](https://community.particle.io/u/JSchrempp)
#### Post date: [January 23, 2017, 10:43pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/9 "2017-01-23T22:43:28Z")

</div>

Thanks. I did try your command, same result. I see I’m on npm v4.1.1, but should that matter?

---

<div class="post-metadata">

### Author: ![nrobinson2000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nrobinson2000/32/15624_2.png) [@nrobinson2000](https://community.particle.io/u/nrobinson2000)
#### Post date: [January 23, 2017, 10:45pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/10 "2017-01-23T22:45:35Z")

</div>

What if you try:

```auto
$ sudo npm install -g --unsafe-perm node-pre-gyp npm serialport particle-cli

```

---

<div class="post-metadata">

### Author: ![JSchrempp](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jschrempp/32/6396_2.png) [@JSchrempp](https://community.particle.io/u/JSchrempp)
#### Post date: [January 23, 2017, 10:48pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/11 "2017-01-23T22:48:32Z")

</div>

You sir, are a wizard. That worked!

Thanks for the help.

---

<div class="post-metadata">

### Author: ![lami](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/lami/32/3576_2.png) [@lami](https://community.particle.io/u/lami)
#### Post date: [January 23, 2017, 10:49pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/12 "2017-01-23T22:49:09Z")

</div>

Quickly tested on macOS Sierra, had to reinstall node.js, but at the end it worked and I have 1.19.0 now.

---

<div class="post-metadata">

### Author: ![isas](https://avatars.discourse-cdn.com/v4/letter/i/ecb155/32.png) [@isas](https://community.particle.io/u/isas)
#### Post date: [November 11, 2018, 4:30pm UTC](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/13 "2018-11-11T16:30:43Z")

</div>

You are the man! Ive been trying to figure this out for so long
