我刚刚将我的Mac更新为OSX 10.11 El Capitan并且没有留下一些宝石.
当我试图运行不同宝石的安装时出现问题...例如:
> sudo gem install compass
Run Code Online (Sandbox Code Playgroud)
一旦我执行,我得到错误:
> ERROR: While executing gem ... (Errno::EPERM) Operation not permitted
Run Code Online (Sandbox Code Playgroud)
其他宝石也会发生这种情况......
我已经运行Homebrew并尝试再次安装Ruby,但没有任何工作.
我已经在我的symfony 2项目中安装了指南针.现在我想将资产过滤器与指南针结合使用.我正在使用Windows 7.
我认为它几乎正常,但我仍然收到此错误:
[Assetic\Exception\FilterException]
An error occurred while running:
"C:\Ruby21-x64\bin\ruby.EXE" "C:\Ruby21-x64\bin\compass.BAT" "compile" "C:\
Users\tommie\AppData\Local\Temp" "--boring" "--config" "C:\Users\tommie\App
Data\Local\Temp\ass4325.tmp" "--sass-dir" "" "--css-dir" "" "C:/Users/tommi
e/AppData/Local/Temp/ass4326.tmp.scss"
Error Output:
C:/Ruby21-x64/bin/compass.BAT:1: syntax error, unexpected tCONSTANT, expect
ing end-of-input
Run Code Online (Sandbox Code Playgroud)
我在html(twig)中的代码:stylesheets.html.twig
{% stylesheets filter="compass" output='css/compiled/*.css'
"@AcmeSassDemoBundle/Resources/assets/css/base.scss"
%}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
Run Code Online (Sandbox Code Playgroud)
base.html.twig:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% block title %}Sass Demo!{% endblock %}</title>
{#{% block stylesheets %}{% endblock %} #}
{% include "AcmeSassDemoBundle:Demo:stylesheets.html.twig" %}
<link …
Run Code Online (Sandbox Code Playgroud) 安装OS X El Capitan(10.11)后,我的红宝石指南针不再工作了.尝试安装指南针后,我收到如下错误消息:
$ sudo gem install compass
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/compass
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
我无法安装指南针.我想在我的项目上安装指南针,所以当我尝试更新时,我得到了这个:
c:\ wamp\www\danjasnowski.com> gem install compass错误:找不到有效的宝石'指南针'(> = 0),原因如下:无法从https://rubygems.org/下载数据- SSL_connect返回= 1 errno = 0状态= SSLv3读取服务器证书B:证书验证失败(https://api.rubygems.org/specs.4.8.gz)
另外..我目前的版本.
c:\ wamp\www\danjasnowski.com> gem --version
2.4.1
和
irb(main):001:0> RUBY_VERSION
=>"2.0.0"
irb(main):002:0> RUBY_RELEASE_DATE
>"2014-05-08"
irb(主要):003:0> RUBY_PLATFORM
>"x64-mingw32"
irb(main):004:0> RUBY_PATCHLEVEL
=> 481
IRB(主):005:0>
当我想安装compass
时gem install compass
,我发生了这个错误:
YAML safe loading is not available.
Please upgrade psych to a version that supports safe loading (>= 2.0).
Run Code Online (Sandbox Code Playgroud)
什么是这个错误的原因,我该如何解决这个问题?
我在我的项目中使用Bootstrap 3,我使用FontAwesome图标库而不是捆绑的Glyphicons.
问题是我有一些依赖Glyphicons的第三方组件,我不想改变他们的HTML.
我通过Bower和SASS + Compass(SCSS)包括字体真棒.
是否可以在不更改HTML和应用其他CSS类的情况下用FontAwesome替换Glyphicons?
当我运行"罗盘手表"时,我收到此错误:
LoadError on line ["54"] of /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- susy
Run with --trace to see the full backtrace
Run Code Online (Sandbox Code Playgroud)
我设法修复它:
sudo gem update
sudo gem install susy
Run Code Online (Sandbox Code Playgroud)
当我再次运行罗盘时,生成了css文件,我收到了一个新错误:
>>> Compass is watching for changes. Press Ctrl-C to Stop.
write css/ie10_and_higher.css
write css/ie9.css
write css/style.css
D, [2015-07-31T10:36:12.805795 #5675] DEBUG -- : Celluloid 0.17.0 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
ArgumentError on line ["48"] of /var/lib/gems/2.1.0/gems/celluloid-0.17.0/lib/celluloid/calls.rb: wrong number of arguments (2 for 1)
Run with --trace to see …
Run Code Online (Sandbox Code Playgroud) 我是webpack的新手,我不知道如何在项目中使用Compass(CSS Authoring Framework).
有一个好方法吗?
谢谢