gpt4 book ai didi

Sass 更新 3.4.6 后 Gulp Compass 崩溃了

转载 作者:行者123 更新时间:2023-12-04 18:06:19 25 4
gpt4 key购买 nike

当我的 gulp 在我的 sass 文件上运行 compass 时,我遇到了以下错误:

error src/scss/site/style.scss (/Library/Ruby/Gems/2.0.0/gems/sass-3.4.6/lib/sass/selector/abstract_sequence.rb:96:in `block in _specificity': undefined method `specificity' for [:not(.pointer)]:Array)

我不知道这个错误究竟意味着什么,但它指向的文件没有特殊来源,它只是一个小的合法 scss 文件:
@import '../general';

.tld {
color: $color-primary;
}

我的 Gulp 流中也不断出现这些错误,可能与以下有关:
[21:45:01] Ignoring psych-2.0.6 because its extensions are not built.  Try: gem pristine psych-2.0.6

[21:45:01] Ignoring ffi-1.9.5 because its extensions are not built. Try: gem pristine ffi-1.9.5

当然,我尝试了“ gem 原始”,但这没有任何作用。

我不知道发生了什么,我只知道上周我的 gulpfile 是一样的,并且运行完美。我安装了 OSX Yosemite 并没有做任何特别的事情。

我知道我的描述缺少内容,但那是因为我不知道在哪里寻找解决方案,因为我不理解错误。

最佳答案

好吧,我责怪我的 OSX Yosemite 升级,但这是不对的。我还升级了我的 gem ,看来我升级到 3.4.6 的 sass 破坏了 sass。降级到 3.4.5 可以完成以下工作:

sudo gem uninstall sass

sudo gem install sass --version 3.4.5

关于Sass 更新 3.4.6 后 Gulp Compass 崩溃了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26473815/

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