<p>Because fsevents is an optional dependency, the solution has been here:</p>

<pre><code>npm install --no-optional karma-phantomjs-launcher
</code></pre>

CC BY-SA 3.0
2017-06-27T12:29:53.823Z
2017-06-27T13:31:13.320Z
2017-06-27T13:31:13.320Z
Ta Mu
<p>Karma is a nodejs tool to automate browser testing. It seems that it depends on nodejs plugin fsevents.</p>

<p>But, fsevents is for processing Mac OS X events, therefore I get the error "not supported on your system" for the phantom karma launcher.</p>

<p>Questions I have found on GitHub seem to come from other Mac OS users dealing with upgrading npm.</p>

<p>My question is: how to install karma launcher in headless ubuntu/docker context?</p>

CC BY-SA 3.0
2017-06-27T12:22:45.503Z
Mind to share a log ? That's hard to tell which release you're on or whatever could be wrong here, (There's no mention of fsevent in the dependencies on [github](https://github.com/karma-runner/karma-phantomjs-launcher/blob/master/package.json) so maybe a transient dep somewhere...)
Tensibai
CC BY-SA 3.0
2017-06-27T12:30:25.763Z
supposedly, transient, yes
Ta Mu
<testing>
Installing phantomjs karma launcher in Ubuntu-Docker context
Ta Mu
# Installing phantomjs karma launcher in Ubuntu-Docker context

(Asked by: username_0 on 2017-06-27)

Karma is a nodejs tool to automate browser testing. It seems that it depends on nodejs plugin fsevents.

But, fsevents is for processing Mac OS X events, therefore I get the error "not supported on your system" for the phantom karma launcher.

Questions I have found on GitHub seem to come from other Mac OS users dealing with upgrading npm.

My question is: how to install karma launcher in headless ubuntu/docker context?

**Tags:** testing

> **Comments:**
> **username_1**: Mind to share a log ? That's hard to tell which release you're on or whatever could be wrong here, (There's no mention of fsevent in the dependencies on [github](https://github.com/karma-runner/karma-phantomjs-launcher/blob/master/package.json) so maybe a transient dep somewhere...)  
> **username_0**: supposedly, transient, yes  

---

## 1 answers

### Answer by username_0 on 2017-06-27. Score: 1 | Accepted answer

Because fsevents is an optional dependency, the solution has been here:
npm install --no-optional karma-phantomjs-launcher


---

