噶整合和webstorm [英] Integrating Karma and webstorm

查看:138
本文介绍了噶整合和webstorm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想整合噶和webstorm窗户,我遵循了这个网站的步骤:
http://mobicon.tistory.com/273 (它翻译成英文),但不起作用。

我已创建了一个噶服务器和运行噶:

在路径节点js文件文本框,我已经指出了一个因缘文件从节点模块:

C:\\用户\\ XXX \\应用程序数据\\漫游\\ NPM-缓存\\人缘\\ 0.8.4 \\包\\ BIN \\人缘

在服务器启动和噶运行运行应用程序参数

我收到以下错误:

  module.js:340
    扔犯错;
          ^
错误:无法找到模块乐天派
    在Function.Module._resolveFilename(module.js:338:15)
    在Function.Module._load(module.js:280:25)
    在Module.require(module.js:362:17)
    在要求(module.js:378:17)
    在对象<&匿名GT; (C:\\用户\\ Javito \\应用程序数据\\漫游\\ NPM-缓存\\人缘\\ 0.8.4 \\包\\ lib目录\\ cli.js:2:16)
    在Module._compile(module.js:449:26)
    在Object.Module._extensions..js(module.js:467:10)
    在Module.load(module.js:356:32)
    在Function.Module._load(module.js:312:12)
    在Module.require(module.js:362:17)流程完成,退出code 1


解决方案

问题是噶执行文件(路径节点应用的JS文件),我指着,这里是我的配置服务器和运行:

噶服务器:

噶运行:

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

解决方案

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 Run:

这篇关于噶整合和webstorm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆