无法在Windows 7/OSX上安装茉莉花核心 [英] Cannot install jasmine-core on Windows 7 / OSX

查看:104
本文介绍了无法在Windows 7/OSX上安装茉莉花核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试根据以下准则在Windows 7/Git Bash上安装karma-jasmine: http://karma-runner.github.io/0.13/intro/installation.html

I am trying to install karma-jasmine on Windows 7 / Git Bash, according to these guidelines: http://karma-runner.github.io/0.13/intro/installation.html

但是,对于jasmine-core,安装失败:

However, the installation fails for jasmine-core:

$ npm install karma-jasmine karma-chrome-launcher --save-dev
npm WARN install Couldn't install optional dependency: Unsupported
ngut@1.0.0 g:\SW Engineering\ngUT
├── UNMET PEER DEPENDENCY jasmine-core@*
├─┬ karma-chrome-launcher@0.2.2
│ ├─┬ fs-access@1.0.0
│ │ └── null-check@1.0.0
│ └─┬ which@1.2.0
│   └─┬ is-absolute@0.1.7
│     └── is-relative@0.1.3
└── karma-jasmine@0.3.6

npm WARN EPEERINVALID karma-jasmine@0.3.6 requires a peer of jasmine-core@* but
none was installed.

我首先使用Cygwin尝试安装,但得知Cygwin不支持npm,但是失败的依赖项是fsevent.

I tried the installation first with Cygwin, only to learn that npm is not supported on Cygwin, but there the failing dependency was fsevent.

jasmine-core的全局安装成功,但是我尝试遵循

The global installation of jasmine-core succeeds, but I am trying to follow this tutorial and karma start karma.conf.js fails for the same reason (missing jasmine-core) with the global installation as well.

最后,在OSX上也出现了完全相同的问题.

Finally, the exact same problem appears on OSX as well.

推荐答案

Karma v.0.13.16仅不支持Node.v.5.3.0. Karma安装页面上列出了受支持的Node版本.

Karma v.0.13.16 just did not support v.5.3.0 of Node. The supported Node versions were listed on Karma installation page.

这篇关于无法在Windows 7/OSX上安装茉莉花核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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