启动Ruby和Rails命令提示符时,系统找不到指定的路径

mik*_*y10 3 windows ruby-on-rails heroku

我刚开始学习一周前的轨道,一切都工作到今天.现在,当我启动Ruby命令提示符时,它说:

The system cannot find the path specified.

# Under Rails Environment Configuration.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

---
Run Code Online (Sandbox Code Playgroud)

ruby和rails的路径正确显示.

我正在使用Windows Vista 32位.任何帮助将不胜感激,谢谢!

小智 23

您可能已经使用了"Ansicon" - 一个程序来获取Windows提示中的颜色.如果使用-i参数永久安装它并因此移动/删除其目录,则会导致此错误.(我刚刚体验过它)

解决方案是更新ansicon数据文件的位置或删除以下注册表项:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
Run Code Online (Sandbox Code Playgroud)

您可以在http://carol-nichols.com/2011/03/17/the-system-cannot-find-the-path-specified/找到有关此问题的更多信息.

祝好运!

  • 我爱你@Juraj (2认同)