简体   繁体   English

业障不是从cmd开始的

[英]Karma does not start from the cmd

There is a library Karma . 有一个图书馆K。

The version of the Node.js - 0.10.26. Node.js的版本-0.10.26。

The instructions indicated that the creation of the configuration file on the command line required to execute the command: 这些说明表明,在执行命令所需的命令行上创建配置文件:

karma init

However, if while executing this command displays the error: 但是,如果在执行此命令时显示错误:

"Karma" is not an internal or external command, operable program or batch file.

In the environment variables in the "Path" Set path to "npm" and to "karma / bin" 在环境变量的“路径”中将路径设置为“ npm”和“业力/箱”

C:\Users\username\AppData\Roaming\npm;
C:\Users\username\AppData\Roaming\npm\node_modules\karma\bin

Node.js and Karma reinstalled - does not help 重新安装了Node.js和Karma-无济于事

Tell me, please, how to solve the problem? 请告诉我,如何解决问题?

Issue has been resolved. 问题已解决。

For correct operation of "karma", you must install "karma-cli": 为了正确运行“ karma”,必须安装“ karma-cli”:

npm install -g karma-cli

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM