我正在尝试安装karma-jasmine
在 Windows 7 / Git Bash 上,根据以下指南:http://karma-runner.github.io/0.13/intro/installation.html http://karma-runner.github.io/0.13/intro/installation.html
但是,安装失败jasmine-core
:
$ npm install karma-jasmine karma-chrome-launcher --save-dev
npm WARN install Couldn't install optional dependency: Unsupported
[email protected] /cdn-cgi/l/email-protection g:\SW Engineering\ngUT
├── UNMET PEER DEPENDENCY jasmine-core@*
├─┬ [email protected] /cdn-cgi/l/email-protection
│ ├─┬ [email protected] /cdn-cgi/l/email-protection
│ │ └── [email protected] /cdn-cgi/l/email-protection
│ └─┬ [email protected] /cdn-cgi/l/email-protection
│ └─┬ [email protected] /cdn-cgi/l/email-protection
│ └── [email protected] /cdn-cgi/l/email-protection
└── [email protected] /cdn-cgi/l/email-protection
npm WARN EPEERINVALID [email protected] /cdn-cgi/l/email-protection requires a peer of jasmine-core@* but
none was installed.
我首先尝试使用 Cygwin 安装,结果发现npm
Cygwin 不支持,但失败的依赖项是fsevent
.
全局安装jasmine-core
成功了,但我正在努力遵循本教程 http://www.bradoncode.com/blog/2015/05/19/karma-angularjs-testing/ and karma start karma.conf.js
由于同样的原因失败(缺少jasmine-core
)以及全局安装。
最后,完全相同的问题也出现在 OSX 上。
Karma v.0.13.16 只是不支持 Node.js v.5.3.0。 Karma 安装页面上列出了支持的 Node 版本。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)