安装后运行业力导致“业力"不被识别为内部或外部命令 [英] Running karma after installation results in 'karma' is not recognized as an internal or external command

查看:73
本文介绍了安装后运行业力导致“业力"不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用

npm install -g karma

我得到:

'karma' is not recognized as an internal or external command, operable program or batch file.

当我尝试从angular-client \ scripts运行test.bat时,此文件的内容为:

when i'm trying to run test.bat from angular-client\scripts, the content of this file is:

设置BASE_DIR =%〜dp0

set BASE_DIR=%~dp0

业力开始%BASE_DIR%.. \ config \ karma.conf.js"%*

karma start "%BASE_DIR%..\config\karma.conf.js" %*

我还尝试导航到"\ AppData \ Roaming \ npm \ node_modules \ karma \ bin"并看到了karma文件,当我尝试运行它时,我又得到了:

I also tried to navigate to "\AppData\Roaming\npm\node_modules\karma\bin" and saw karma file, when I'm trying to run it I get again:

'karma'不被识别为内部或外部命令,可操作程序或批处理文件.

'karma' is not recognized as an internal or external command, operable program or batch file.

有什么建议吗? 如果不是,请提出如何在没有业力的情况下使用茉莉花.

Any suggestions? If not please suggest how to use jasmine without karma.

谢谢.

推荐答案

命令行界面位于单独的程序包中.

The command line interface is in a separate package.

要安装此用法,请执行以下操作:

To install this use:

npm install -g karma-cli

npm install -g karma-cli

这篇关于安装后运行业力导致“业力"不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆