# Particle login - command not found (MAC)

**URL:** https://community.particle.io/t/particle-login-command-not-found-mac/29071
**Category:** General
**Created:** [February 1, 2017, 8:58pm UTC](https://community.particle.io/t/particle-login-command-not-found-mac/29071 "2017-02-01T20:58:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lucas](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lucas](https://community.particle.io/u/lucas)
#### Post date: [February 1, 2017, 8:58pm UTC](https://community.particle.io/t/particle-login-command-not-found-mac/29071/1 "2017-02-01T20:58:05Z")

</div>

Hi all, I am new on this so please bare with me. I’m starting to work with Particle but I have a mac. I’ve been able to install the particle CLI and update it. However, I cannot login to the particle and continue working on it.

MacBook-Pro-de-Lucas:~ LucasRocha$ particle login  
-bash: particle: command not found.

Any help is greatly appreciated.

---

<div class="post-metadata">

### Author: ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)
#### Post date: [February 1, 2017, 9:06pm UTC](https://community.particle.io/t/particle-login-command-not-found-mac/29071/2 "2017-02-01T21:06:31Z")

</div>

How did you install CLI?

Maxbe you haven’t used the `-g` (global) flag?

```nohighlight
sudo npm install -g particle-cli

```

---

<div class="post-metadata">

### Author: ![lucas](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lucas](https://community.particle.io/u/lucas)
#### Post date: [February 1, 2017, 9:38pm UTC](https://community.particle.io/t/particle-login-command-not-found-mac/29071/3 "2017-02-01T21:38:42Z")

</div>

I used the global flag and used the same line

---

<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: [February 1, 2017, 11:17pm UTC](https://community.particle.io/t/particle-login-command-not-found-mac/29071/4 "2017-02-01T23:17:26Z")

</div>

What if you try my solution from this thread?

> [@New CLI on OS X 10.11 El Capitan \[SOLVED\]](https://community.particle.io/t/new-cli-on-os-x-10-11-el-capitan-solved/28802/10):
>
> What if you try: $ sudo npm install -g --unsafe-perm node-pre-gyp npm serialport particle-cli

---

<div class="post-metadata">

### Author: ![lucas](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lucas](https://community.particle.io/u/lucas)
#### Post date: [February 2, 2017, 3:14pm UTC](https://community.particle.io/t/particle-login-command-not-found-mac/29071/5 "2017-02-02T15:14:03Z")

</div>

> [@nrobinson2000](#):
>
> sudo npm install -g --unsafe-perm node-pre-gyp npm serialport particle-cli

Thanks for your contribution. I just tried but didnt work ☹
