本文介绍了无法在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
[email protected] g:\SW Engineering\ngUT
├── UNMET PEER DEPENDENCY jasmine-core@*
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]
└── [email protected]

npm WARN EPEERINVALID [email protected] 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的全局安装成功,但是我尝试遵循本教程karma start karma.conf.js由于全局安装也由于相同的原因而失败(缺少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上安装茉莉花核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 19:23