首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Npm安装Karma-jasmine不起作用

Npm安装Karma-jasmine不起作用
EN

Stack Overflow用户
提问于 2015-02-13 01:35:43
回答 1查看 502关注 0票数 0

我只需按照其中的说明进行操作:http://karma-runner.github.io/0.12/intro/installation.html

Karma已正确安装。但是,我不能安装karma-jasmine和karma-chrome-launcher。实际上,我对自述文件有很多警告:

代码语言:javascript
复制
npm WARN package.json abbrev@1.0.4 No README data
npm WARN package.json ansi@0.2.1 No README data
npm WARN package.json archy@0.0.2 No README data
npm WARN package.json asn1@0.1.11 No README data

..。

然后是一些未满足的依赖关系:

*

代码语言:javascript
复制
npm WARN unmet dependency /usr/lib/node_modules/block-stream requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-ignore requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-npm requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/glob requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/npmconf requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/tar requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined

*

你知道这是从哪里来的吗?

EN

回答 1

Stack Overflow用户

发布于 2015-04-20 17:30:09

代码语言:javascript
复制
Follow below steps to setup karma-jasmine environment

 •  Install nodejs
    o   Download nodejs suitable setup file from https://nodejs.org/download/ website.
    o   Install nodejs using setup file 
    •   Installation of Karma and plugins using npm(node package manager)
    o   Open command prompt
    o   Traverse to project structure
       cd ‘\path of project folder’
       (path till  folder which is having /src folder in it)
    o   Install Karma
       npm install karma --save-dev
    •   New folder in project structure will get created named as ‘node_modules’
    •   If any warnings appear on command prompt ignore them

    o   Install browser plugins(optional)
       npm install karma-jasmine karma-chrome-launcher --save-dev
    •   If any warnings appear on command prompt ignore them
    o   Install Karma command line interpreter globally
       npm install -g karma-cli
    •   If any warnings appear on command prompt ignore them
票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28484083

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档