# Troubleshoot: Particle-CLI on windows \[Q&A\]

**URL:** <https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352>\
**Category:** Tutorials\
**Created:** [June 26, 2014, 8:37am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352 "2014-06-26T08:37:08Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [February 28, 2014, 1:13am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/21 "2014-02-28T01:13:58Z")

</div>

Lolololololololol. That’s always a good fix!

---

<div class="post-metadata">

**Author:** ![skyvoyager](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@skyvoyager](https://community.particle.io/u/skyvoyager)\
**Post date:** [February 28, 2014, 1:14am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/22 "2014-02-28T01:14:58Z")

</div>

Yeah…that didn’t work, either. My happy and sad is trending to more sad now. Perhaps I should quit while I’m ahead! (or switch to my Mac!)

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [February 28, 2014, 1:24am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/23 "2014-02-28T01:24:11Z")

</div>

Ohh you mean the error on serial? It’s an issue on windows now so just wait for a fix 🙂

---

<div class="post-metadata">

**Author:** ![skyvoyager](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@skyvoyager](https://community.particle.io/u/skyvoyager)\
**Post date:** [February 28, 2014, 1:52am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/24 "2014-02-28T01:52:25Z")

</div>

Gotcha!

I shall spend my time working to make my Spark sentient so that it will do my bidding. 😃

---

<div class="post-metadata">

**Author:** ![BDub](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bdub/32/5137_2.png) [@BDub](https://community.particle.io/u/BDub)\
**Post date:** [February 28, 2014, 4:03am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/25 "2014-02-28T04:03:12Z")

</div>

You might benefit from this topic if you are on Windows: [https://community.spark.io/t/installing-the-usb-driver-on-windows-serial-debugging/882](https://community.spark.io/t/installing-the-usb-driver-on-windows-serial-debugging/882)

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [March 1, 2014, 12:26am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/26 "2014-03-01T00:26:07Z")

</div>

Ok, so spark-cli is working on my Win8.1 pc. I want to compile an entire directory containing all the necessary .cpp and .h files. When I try and do a cloud compile of the directory it quickly spews out an error indicating there is no such file for a file that is clearly there. Am I missing something on how the CLI works? Do the files need to be separated into inc and src folders? Do I have to have a build.mk file in there?

---

<div class="post-metadata">

**Author:** ![mikepa](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mikepa](https://community.particle.io/u/mikepa)\
**Post date:** [March 1, 2014, 3:21pm UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/27 "2014-03-01T15:21:05Z")

</div>

Can i check if anyone has tried to install Spark-cli on OSX (10.9)? straight after spark cloud login am getting:

```
Got an access token! 1234567890123456789012345678901234567890
logged in! { '0': '1234567890123456789012345678901234567890' }
There was an error writing [object Object]: { [Error: EACCES, permission denied '/usr/local/lib/node_modules/spark-cli/spark.config.json']
  errno: 3,
  code: 'EACCES',
  path: '/usr/local/lib/node_modules/spark-cli/spark.config.json',
  syscall: 'open' }

```

something (spark-cli?) doesn’t have access permission to the folder specified - anyone else seen or thoughts on how to resolve?

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [March 1, 2014, 6:42pm UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/28 "2014-03-01T18:42:23Z")

</div>

Hi @mikepa,

There is an issue for this bug here: [https://github.com/spark/spark-cli/issues/10](https://github.com/spark/spark-cli/issues/10)

The cli should be storing it’s config in the user’s home directory, and not with the application. I’ll be doing a CLI day on Sunday, so a fix should come then hopefully. 😄

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [March 1, 2014, 6:43pm UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/29 "2014-03-01T18:43:34Z")

</div>

Hi @peekay123,

Thank you for trying the CLI - Can you send me the error output?

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [March 1, 2014, 7:03pm UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/30 "2014-03-01T19:03:32Z")

</div>

Dave, I will PM you on this.

---

<div class="post-metadata">

**Author:** ![mikepa](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mikepa](https://community.particle.io/u/mikepa)\
**Post date:** [March 2, 2014, 2:37am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/31 "2014-03-02T02:37:50Z")

</div>

thanks for the pointer @Dave - hadn’t thought to check Github for this type of thing.

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [May 6, 2014, 2:21pm UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/32 "2014-05-06T14:21:40Z")

</div>

I wanted to jump in and say the requirements for installing the node-serialport module have lessened significantly. You should no longer need the node-gyp / Python / Visual Studio C++ express stuff.

Thanks!  
David

---

<div class="post-metadata">

**Author:** ![Jerware](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jerware/32/1516_2.png) [@Jerware](https://community.particle.io/u/Jerware)\
**Post date:** [June 20, 2014, 6:13am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/33 "2014-06-20T06:13:52Z")

</div>

What was the solution to this? I’m getting the same error.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 20, 2014, 9:17am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/34 "2014-06-20T09:17:17Z")

</div>

What’s the issue you are facing? 🙂

---

<div class="post-metadata">

**Author:** ![Jerware](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jerware/32/1516_2.png) [@Jerware](https://community.particle.io/u/Jerware)\
**Post date:** [June 21, 2014, 12:45am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/35 "2014-06-21T00:45:35Z")

</div>

Hi Kennith. If you click the little image of peekay123 in my post you can see the quoted message that I’m replying to. (I’m not used to this forum software either, but I like it!) I got a PM from Dave pointing out that local libraries have to be in quotes (not brackets) when importing them for compile using Spark-CLI.

```
I.e. #import "library.h", not #import <library.h>.

```

One question I still have is what about application.h? Is that available for import globally server side when I do a cloud compile, or do I need to copy all the Spark library files to my project folder too?

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 21, 2014, 12:56am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/36 "2014-06-21T00:56:33Z")

</div>

For `#include "application.h"`, it is available for the server side and you do not have to include it.

You only need the library files you are using 🙂

---

<div class="post-metadata">

**Author:** ![BDub](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bdub/32/5137_2.png) [@BDub](https://community.particle.io/u/BDub)\
**Post date:** [June 21, 2014, 4:02am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/37 "2014-06-21T04:02:35Z")

</div>

Just going through updating my CLI install… there are new versions for all of the programs you’ve linked to up there 😉

Also a link to the MS V++ 2008 Redistributable would be good.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 21, 2014, 4:04am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/38 "2014-06-21T04:04:04Z")

</div>

For node.js? Why do we need the V++ since its no longer a prerequisite? 🙂

I’ll update the links later but would be more awesome if there’s a “latest” version link.

Thanks @BDub!

Going to setup in my windows running on Parallels later 😉

---

<div class="post-metadata">

**Author:** ![BDub](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bdub/32/5137_2.png) [@BDub](https://community.particle.io/u/BDub)\
**Post date:** [June 21, 2014, 4:05am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/39 "2014-06-21T04:05:44Z")

</div>

The OpenSSL installation complains about it if you don’t have it on your computer…

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 21, 2014, 4:06am UTC](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352/40 "2014-06-21T04:06:23Z")

</div>

I didn’t know that…

[Previous page](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352.md?page=1)

[Next page](https://community.particle.io/t/troubleshoot-particle-cli-on-windows-q-a/5352.md?page=3)
