我正在学习CS50的Python和JavaScript Web编程课程,我们必须在其他工具中使用SASS。我在Windows中安装了cygwin,并且几乎对所有东西(git,atom等)都可以正常工作,但是现在我试图安装SASS却没有成功。我遵循以下指示:https://gist.github.com/Geraint/1600659,它们似乎工作正常。唯一的问题是指向RubyGems指令的链接似乎已断开。不过,在我看来,我确实有红宝石和宝石。
当我尝试命令时:
$ gem install sass
我得到:
ERROR: Could not find a valid gem 'Autorizado/bin' (>= 0) in any repository
ERROR: Possible alternatives: authorizable, authorization, authorization-san, auto_admin, auto_ria_api
WARNING: You don't have /home/Usuario in your PATH,
gem executables will not run.
Building native extensions. This could take a while...
ERROR: Error installing sass:
ERROR: Failed to build gem native extension.
current directory: /home/Usuario Autorizado/.gem/ruby/2.6.0/gems/ffi-1.12.2/ext/ffi_c
/usr/bin/ruby.exe -I /usr/share/rubygems -r ./siteconf20200324-1935-rt56xf.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /home/Usuario Autorizado/.gem/ruby/2.6.0/gems/ffi-1.12.2 for inspection.
Results logged to /home/Usuario Autorizado/.gem/ruby/2.6.0/extensions/x86_64-cygwin/2.6.0/ffi-1.12.2/gem_make.out
这也是一个屏幕截图,我认为它与我的PATH有关,但是我找不到解决方案。我当前的文件夹有两个单词(Usuario Autorizado),我不知道这也是一个问题以及如何解决。
Screen Shot of my cygwin terminal
我已经尝试过:
gem sources --add https://rubygems.org/
在这里解释:"Could not find a valid gem in any repository" (rubygame and others),但是没有用。
我将非常感谢您的帮助...