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

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

问题描述

在使用

npm install -g karma

我明白了:

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

当我试图从 angular-clientscripts 运行 test.bat 时,这个文件的内容是:

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

设置BASE_DIR=%~dp0

set BASE_DIR=%~dp0

业力开始%BASE_DIR%..configkarma.conf.js"%*

karma start "%BASE_DIR%..configkarma.conf.js" %*

我还尝试导航到AppDataRoaming pm ode_moduleskarmain";并看到了业力文件,当我尝试运行它时,我又得到了:

I also tried to navigate to "AppDataRoaming pm ode_moduleskarmain" 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.

要安装此使用:

npm install -g karma-cli

npm install -g karma-cli

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

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