简体   繁体   中英

Karma does not start from the cmd

There is a library Karma .

The version of the 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"

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

Node.js and Karma reinstalled - does not help

Tell me, please, how to solve the problem?

Issue has been resolved.

For correct operation of "karma", you must install "karma-cli":

npm install -g karma-cli

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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