我安装了:
ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
当我运行此命令时:
gem install sass
我遇到这个错误:
ERROR: Loading command: install (ArgumentError)
unknown encoding name - CP720 ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
并且SASS不起作用。
答案 0 :(得分:2)
这是由您当前的终端引起的,因为它正在使用Ruby不支持的代码页(编码),因为Codepage 720
与给定here的阿拉伯字符相关
所以有两种可能的解决方案
chcp 1252
还要检查solution。答案 1 :(得分:0)
尝试在系统中安装open ssl。
https://geeksww.com/tutorials/libraries/openssl/installation/installing_openssl_on_ubuntu_linux.php
然后运行gem install sass