简体   繁体   English

CMD: 'C:\Users\Md' 不是内部或外部命令、可运行程序或批处理文件

[英]CMD: 'C:\Users\Md' is not recognized as an internal or external command, operable program or batch file

I'm new to selenium and currently studying selenium IDE I'm trying to run selenium side runner by using command prompt but it returns 'C:\Users\Md' is not recognized as an internal or external command, operable program or batch file.我是 selenium 的新手,目前正在学习 selenium IDE 我正在尝试使用命令提示符运行 selenium side runner 但它返回 'C:\Users\Md' 未被识别为内部或外部命令、可运行程序或批处理文件. My project location- "C:\selenium_webdriver\Project2.side"我的项目位置-“C:\selenium_webdriver\Project2.side”

My command:我的命令:

1个

I have tried我努力了

  • Changing Path variables, rebooting, etc.更改路径变量、重新启动等。
  • Changing file directory更改文件目录
  • Run as administrator以管理员身份运行

It's the spaces in Md Zin Bin Dekan.就是Md Zin Bin Dekan的空间。 Use C:\Users\Md~1 or remove the spaces from the directory使用 C:\Users\Md~1 或从目录中删除空格

Check if the npm folder lies under %AppData% .检查npm文件夹是否位于%AppData%下。 If so then copy/move the npm folder to a path which has no space in it ( C:\npm eg).如果是这样,则将npm文件夹复制/移动到其中没有空格的路径(例如C:\npm )。 Then change the npm path within your PATH environment variables to the path you chose before.然后将PATH环境变量中的npm路径更改为您之前选择的路径。

Close all command-line windows (if any open), open a new window and try your command.关闭所有命令行 windows(如果有打开的),打开一个新的 window 并尝试您的命令。 If you still run into issues type path in the command line und check whether your changes had been saved.如果您仍然遇到问题,请在命令行中键入path并检查您的更改是否已保存。

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

相关问题 Protractor 不是内部或外部命令、可运行程序或批处理文件 - Protractor is not recognized as an internal or external command, operable program or batch file “@ php_bin @”不被识别为内部或外部命令,可操作程序或批处理文件 - “@php_bin@” is not recognized as an internal or external command,operable program or batch file Abd无法识别为内部或外部命令 - abd is not recognized as an internal or external command '机器人未被识别为内部或外部命令' - 'robot is not recognized as an internal or external command' '。' 未被识别为内部或外部命令 - wdio - '.' is not recognized as an internal or external command - wdio 为什么我在 windows 上得到“行为不被识别为内部或外部命令” - why Im getting “behave is not recognized as an internal or external command” on windows 尽管我全局安装了量角器(Jenkins),但webdriver-manager无法识别为内部或外部命令 - webdriver-manager is not recognized as an internal or external command, although I installed protractor globally (Jenkins) 使用从主机mac发出的命令在parallels vm上运行批处理文件 - Running batch file on parallels vm with command issued from host mac 使用Selenium C#自动化运行Unix批处理文件 - Unix batch file run using selenium C# automation 如何将外部javascript文件嵌入到ac#硒测试单元中? - how to embed an external javascript file to a c# selenium test unit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM