【问题标题】:Error installing sass on windows在 Windows 上安装 sass 时出错
【发布时间】:2016-08-01 08:26:57
【问题描述】:

我正在尝试使用 ruby​​ 安装 sass,但没有任何反应,并且出现以下消息:

ERROR: Loading command: install (ArgumentError) unknown encoding name - CP720
ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass

ruby 版本:2.3.1 gem 版本:2.5.1 windows 10

【问题讨论】:

    标签: ruby sass rubygems


    【解决方案1】:

    尝试安装koalascout而不是sass命令行编译器

    【讨论】:

      【解决方案2】:

      首先输入 cmd : chcp 1252 , 现在你可以安装 sass whit :gem install sass

      【讨论】:

        【解决方案3】:

        如果你有这个:ERROR: Loading command: install (ArgumentError)
        转至C:\Ruby27-x64\lib\ruby\2.7.0\win32\registry.rb
        并将这行代码:
        LOCALE = Encoding.find(Encoding.locale_charmap) 替换为这一行 LOCALE = Encoding::UTF_8

        【讨论】:

          猜你喜欢
          • 2018-08-19
          • 2018-01-06
          • 2015-04-19
          • 1970-01-01
          • 2018-06-19
          • 2021-08-22
          • 2015-01-03
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多