# Particle Cli not installing

**URL:** <https://community.particle.io/t/particle-cli-not-installing/17110>\
**Category:** Troubleshooting\
**Created:** [November 2, 2015, 10:26pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110 "2015-11-02T22:26:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 2, 2015, 10:26pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/1 "2015-11-02T22:26:55Z")

</div>

I have node installed and it works fine. But when i run the command “npm install -g particle-cli” it gives off this error [http://prntscr.com/8ycj63](http://prntscr.com/8ycj63) and this as well [http://prntscr.com/8ycmiy](http://prntscr.com/8ycmiy) can anyone help

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [November 2, 2015, 10:33pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/2 "2015-11-02T22:33:17Z")

</div>

You could try this installer, which makes the whole process a lot easier:

> [@Toolchain for Windows Installer](https://community.particle.io/t/toolchain-for-windows-installer/13217):
>
> So, in an effort to make local building easier for people, I put together a basic installer for the Toolchain for Windows. It should download and install GCC Arm, GNU make, and the necessary components of the MinGW toolkit, and add them appropriately to the path. I generally followed @kennethlimcp’s guide [here](https://community.particle.io/t/toolchain-windows/11635). I tested it on Win 7, so if something doesn’t work, let me know and I’ll try to fix it! This should decrease the number of steps necessary to get up and running with building locally…

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 2, 2015, 10:36pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/3 "2015-11-02T22:36:37Z")

</div>

So after i install this, i run the command once more and it should work?

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [November 2, 2015, 10:37pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/4 "2015-11-02T22:37:58Z")

</div>

tThat should install the CLI for you. You’ll see it once you open it 🙂

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 2, 2015, 10:39pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/5 "2015-11-02T22:39:53Z")

</div>

Do i do all the packages?

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [November 2, 2015, 10:41pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/6 "2015-11-02T22:41:46Z")

</div>

Doesn’t hurt, but only selecting the CLI should suffice for, well, the CLI. But you might as well install the rest too.

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 2, 2015, 10:54pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/7 "2015-11-02T22:54:43Z")

</div>

didnt work. tried the particle setup command and installing particle cli and still not working

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 2, 2015, 11:06pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/8 "2015-11-02T23:06:50Z")

</div>

you still there?

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [November 2, 2015, 11:24pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/9 "2015-11-02T23:24:40Z")

</div>

> [@ThePotato](#):
>
> you still there?

Although I'm on here quite frequently, I do have a life outside of this forum 😉 I check every once in a while, so give it a bit of time.

> [@ThePotato](#):
>
> didnt work. tried the particle setup command and installing particle cli and still not working

What exactly "didn't work"? You should install the CLI first, and then try the respective commands.

---

<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:** [November 2, 2015, 11:34pm UTC](https://community.particle.io/t/particle-cli-not-installing/17110/10 "2015-11-02T23:34:07Z")

</div>

I guess you are on Windows 10 (judging by your screenshot).

The second screenshot complains about missing .NET Framework 2.0, since 10 only comes with 4.5, so it won’t harm to install 2.0 (as part of 3.5)

This is one resource about how-to (although only for Win10 preview), but there are others online too  
[https://answers.microsoft.com/en-us/insider/forum/insider\_wintp-insider\_install/how-to-instal-net-framework-35-on-windows-10/450b3ba6-4d19-45ae-840e-78519f36d7a4?auth=1](https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/how-to-instal-net-framework-35-on-windows-10/450b3ba6-4d19-45ae-840e-78519f36d7a4?auth=1)

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 3, 2015, 1:00am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/11 "2015-11-03T01:00:09Z")

</div>

should i just downgrade back to windows 8?

---

<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:** [November 3, 2015, 4:57am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/12 "2015-11-03T04:57:29Z")

</div>

This should not be required, I’ve got Win 10 (Pro 64bit) on some machines and there it works too.

I have got .NET 3.5 installed and the installer @Moors7 suggested worked just fine.

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 4, 2015, 12:26am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/13 "2015-11-04T00:26:06Z")

</div>

I downgraded because i was tired of windows 10. Run the toolchain installer. now what?

---

<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:** [November 4, 2015, 12:34am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/14 "2015-11-04T00:34:08Z")

</div>

What what?

If you ran the installer, you should have CLI installed - what more are you expecting?

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 4, 2015, 12:35am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/15 "2015-11-04T00:35:17Z")

</div>

if it did, then where do i do particle setup?

---

<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:** [November 4, 2015, 12:36am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/16 "2015-11-04T00:36:59Z")

</div>

You should now be able to open a `cmd` and enter `particle` and see this

```nohighlight
Welcome to the Particle Command line utility!
Version 1.8.16
https://github.com/spark/particle-cli

Usage: particle <command_name> <arguments>
Common Commands:

    setup, list, call, get, device, identify, flash, subscribe
    compile, monitor, login, logout, help

Less Common Commands:
    token, cloud, config, function, keys, serial, udp, update
    variable, webhook, wireless

For more information Run: particle help <command_name>

```

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 4, 2015, 12:38am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/17 "2015-11-04T00:38:00Z")

</div>

> **[Screenshot](https://prnt.sc/8yrvme)**
>
> Captured with Lightshot

---

<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:** [November 4, 2015, 12:42am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/18 "2015-11-04T00:42:52Z")

</div>

Can you check your `PATH`?

You should at least have these entries in there

```auto
C:\Program Files\nodejs\;C:\Particle\dfu-util;C:\Users\XXXX\AppData\Roaming\npm;C:\Users\XXXX\AppData\Local\particle\bin

```

And the respective directories should exist 😉

* * *

What do you get when you enter `npm` and `npm version`?

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 4, 2015, 1:18am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/19 "2015-11-04T01:18:25Z")

</div>

> [@ScruffR](#):
>
> C:\Users\XXXX\AppData\Local\particle\bin

that doesnt exist

---

<div class="post-metadata">

**Author:** ![ThePotato](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@ThePotato](https://community.particle.io/u/ThePotato)\
**Post date:** [November 4, 2015, 1:30am UTC](https://community.particle.io/t/particle-cli-not-installing/17110/20 "2015-11-04T01:30:53Z")

</div>

This is my path text: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\binaries\php\php\_runningversion;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86\_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Skype\Phone;C:\Program Files\Java\jdk1.8.0\_60\bin;C:\Python27;C:\Program Files\nodejs;C:\Particle\Tools\Git\cmd;C:\Particle\Tools\NodeJS;C:\Particle\Tools\DFU-util;

[Next page](https://community.particle.io/t/particle-cli-not-installing/17110.md?page=2)
