Answers: <p>Because fsevents is an optional dependency, the solution has been here:</p>
  
  <pre><code>npm install --no-optional karma-phantomjs-launcher
  </code></pre>
  
Answers: CC BY-SA 3.0
Answers: 2017-06-27T12:29:53.823Z
Answers: 2017-06-27T13:31:13.320Z
Answers: 2017-06-27T13:31:13.320Z
Answers: Ta Mu
Body: <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>
  
Comments: CC BY-SA 3.0
Comments: 2017-06-27T12:22:45.503Z
Comments: 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...)
Comments: Tensibai
Comments: CC BY-SA 3.0
Comments: 2017-06-27T12:30:25.763Z
Comments: supposedly, transient, yes
Comments: Ta Mu
Tags: <testing>
Title: Installing phantomjs karma launcher in Ubuntu-Docker context
UserDisplayName: Ta Mu
ThreadText: # 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
  
  ```
  
  
  ---
  
  