无效配置或未列出 Rubies。请修复 'config.yml' 并重新运行 'ruby dk.rb install'
Invalid configuration or no Rubies listed. Please fix 'config.yml' and rerun 'ruby dk.rb install'
我想在 windows7 上安装 ruby 以使用 Scout 和 SASS,我是通过 windows 安装程序完成的,但我正在初始化它然后安装用于配置我的 SASS。我做了
ruby dk.rb init
没有任何问题,但
ruby dk.rb install
配置config.yml文件时出错,
我的 Ruby 文件夹在休闲路径中:
G:\Ruby22-x64
截图如下:
根据similar questions我在config.yml中写了这个路径文件:
# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
-"G:/Ruby22-x64"
我也试过:
-G:/Ruby22-x64
或
-G:/Ruby22-x64/bin
还有这个:
---
-G:\Ruby22-x64
我也安装在c:\programfiles然后把路径写在config.yml还是不行
我没有任何效果,我该如何解决?
尝试:
---
- G:\Ruby22-x64
YAML 语法说你需要顶部的 3 个破折号,然后是 破折号 和 space (-
)
不要与 YML 文件 ('listed in DevKit Extraction folder') 混淆,只需为我输入 Ruby 目录名称(你安装在 C:/ 或你的主磁盘驱动器上)(我安装 ruby 在 C:/ Ruby22-x64)
你只需将该目录名放在 YML 文件的末尾
喜欢
- C:/Ruby22-x64
注意驱动器名称和 '- C:/Ruby22-x64' 之间的白色 space
像这样
这就是解决方案。
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- "D:/Program Files/Ruby23-x64"
你应该注意到 space, see this picture for more detail
我想在 windows7 上安装 ruby 以使用 Scout 和 SASS,我是通过 windows 安装程序完成的,但我正在初始化它然后安装用于配置我的 SASS。我做了
ruby dk.rb init
没有任何问题,但
ruby dk.rb install
配置config.yml文件时出错, 我的 Ruby 文件夹在休闲路径中:
G:\Ruby22-x64
截图如下:
根据similar questions我在config.yml中写了这个路径文件:
# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
-"G:/Ruby22-x64"
我也试过:
-G:/Ruby22-x64
或
-G:/Ruby22-x64/bin
还有这个:
---
-G:\Ruby22-x64
我也安装在c:\programfiles然后把路径写在config.yml还是不行
我没有任何效果,我该如何解决?
尝试:
---
- G:\Ruby22-x64
YAML 语法说你需要顶部的 3 个破折号,然后是 破折号 和 space (-
)
不要与 YML 文件 ('listed in DevKit Extraction folder') 混淆,只需为我输入 Ruby 目录名称(你安装在 C:/ 或你的主磁盘驱动器上)(我安装 ruby 在 C:/ Ruby22-x64) 你只需将该目录名放在 YML 文件的末尾
喜欢
- C:/Ruby22-x64 注意驱动器名称和 '- C:/Ruby22-x64' 之间的白色 space 像这样
这就是解决方案。
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- "D:/Program Files/Ruby23-x64"
你应该注意到 space, see this picture for more detail