本文介绍了ansicon -我不工作.ansicon 未被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

厌倦了在命令提示符下查看黑白错误 RSpec 消息.我决定关注这篇文章 http://softkube.com/blog/ansi-command-line-colors-under-windows 安装 ansicon.

Tired of looking at black and white error RSpec messages on the command prompt. I've decided to follow this post http://softkube.com/blog/ansi-command-line-colors-under-windows to install ansicon.

该帖子将我定向到 ansicon github https://github.com/adoxa/ansicon 页面,我下载的.然后我提取了 C:\ansicon 中 .zip 文件夹中的所有内容.弹出命令提示符,cd到ansicon,输入命令ansicon -i,返回错误ansicon不是内部或外部命令,也不是可运行的程序或批处理文件."

That post directed me to the ansicon github https://github.com/adoxa/ansicon page, which i downloaded. I then extracted everything within the .zip folder inside C:\ansicon. Popped up the command prompt, cd to ansicon, typed the command ansicon -i and is returned with the error "ansicon is not recognized as an internal or external command, operable program or batch file."

我将 C:\ansicon 添加到我的 PATH 环境变量中,但它仍然不起作用.我从 github 下载的 zip 文件中没有 x64 或 x86 子文件夹.

I added C:\ansicon to my PATH environmental variable, and it still does not work. There are no x64 or x86 subfodler within the zip I downlaoded from github.

我做错了什么?我安装了 Windows 8.1

What am I doing wrong? I have windows 8.1 installed

推荐答案

ansicon 的安装步骤:

Steps to install ansicon:

  1. https://github.com/adoxa/ansicon/downloads 并解压
    进入目录
  2. 打开命令提示符并 cd 到您解压缩它的文件夹
  3. 现在,cd 到 x86 或 x64(取决于您机器的处理器)并全局安装
    您的机器(例如,D:\Cucumber\ansi160\x64)
  4. 输入 ansicon.exe –iansicon -i 并按 Enter 键
  5. 任何打印 ANSI 颜色的程序现在都可以在您的机器上正确显示
  1. Download the latest version of Ansicon from https://github.com/adoxa/ansicon/downloads and unzip it
    into a directory
  2. Open a command prompt and cd to the folder where you unzipped it
  3. Now, cd into either x86 or x64 (depending on your machine’s processor) and install it globally on
    your machine (For example, D:\Cucumber\ansi160\x64)
  4. Type ansicon.exe –i OR ansicon -i and press Enter
  5. Any program that prints ANSI colors will now display properly on your machine

这篇关于ansicon -我不工作.ansicon 未被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!