Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Karma and webstorm

I would like to integrate Karma and webstorm for windows, I have followed the steps from this web: http://mobicon.tistory.com/273 (translate it to english) but does not work.

I have created one Karma Server and a Karma run:

In Path to Node Js File textfield, I have pointed to a karma file from the node-modules:

C:\Users\xxx\AppData\Roaming\npm-cache\karma\0.8.4\package\bin\karma

In the application parameters for the server start and for the Karma Run run

I get the following errors:

module.js:340
    throw err;
          ^
Error: Cannot find module 'optimist'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (C:\Users\Javito\AppData\Roaming\npm-cache\karma\0.8.4\package\lib\cli.js:2:16)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)

Process finished with exit code 1
like image 959
Javier Hertfelder Avatar asked Apr 19 '13 19:04

Javier Hertfelder


1 Answers

The problem was the Karma execution file (Path to node App JS file) I was pointing to, here is my configuration for both server and run:

Karma Server:

Karma server config

Karma Run:

Karma Run config

like image 184
Javier Hertfelder Avatar answered Sep 24 '22 03:09

Javier Hertfelder