gpt4 book ai didi

terminal - 如何在 Mac 上安装 compass ?

转载 作者:行者123 更新时间:2023-12-04 02:35:51 24 4
gpt4 key购买 nike

我想通过 Mac 中的终端安装 compass 。我安装了sass。我现在有 Sass 3.3.0.alpha.175(出血边缘)

然后我尝试安装 compass
须藤 gem 安装 compass
它给了我这个警告

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/rdoc.rb:280: warning: conflicting chdir during another chdir block
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/rdoc.rb:287: warning: conflicting chdir during another chdir block

然后说“安装了 1 个 gem”

当我运行 compass 时,它不起作用,它给了我以下几行:
/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:110:in `gem_original_require': no such file to load -- sass/script/node (LoadError)
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:110:in `require'
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass.rb:5
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass.rb:4:in `each'
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass.rb:4
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:20
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
from /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:19
from /usr/bin/compass:23:in `load'
from /usr/bin/compass:23

有没有办法来解决这个问题
到目前为止,我使用的是 codekit。但我想利用源 map ,我相信终端是唯一的方法。我尝试将 sass 与源映射一起观看,结果很漂亮(因为我可以使用 chrome 作为编辑器)。但我也想在那里添加 compass

有没有办法让它工作 - 我使用的是 10.8.3 版操作系统

谢谢

最佳答案

Compass 与 sass 3.3.0 alpha 不兼容(见 gem doc)。你应该卸载 compass 和 sass,然后使用 sudo gem install compass 重新安装这也将安装 sass(使用正确的版本)。

编辑:

今天(2017 年 2 月 26 日)刚刚尝试使用 rvm 安装 compass 并偶然发现另一个错误:Error compiling Compass LoadError on line [“179”] .. data.rb: Cannot load such file . This answer为我工作。

关于terminal - 如何在 Mac 上安装 compass ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17026061/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com