1

I installed:

ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]

When I run this command:

gem install sass

I face this error:

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

and SASS doesn't work.

sawa
  • 165,429
  • 45
  • 277
  • 381

2 Answers2

2

This is caused by your current terminal as it is using a codepage (encoding) that is not supported by Ruby, as Codepage 720 is related with Arabic characters as given here

so there are two possible solutions

  • change the default system language and restart.
  • run command chcp 1252if you don't want to change default language also check that solution as well.
Community
  • 1
  • 1
Abdul Hameed
  • 1,008
  • 1
  • 15
  • 35
0

Try installing open ssl in your system.

https://geeksww.com/tutorials/libraries/openssl/installation/installing_openssl_on_ubuntu_linux.php

And then run gem install sass

gates
  • 4,465
  • 7
  • 32
  • 60