1

嗨,我在中间人中添加动画插件时遇到问题,是的,我很确定我为指南针安装了动画插件,并且在我的 gem 列表中看到了它。

如果我将它添加到我的 config.rb

require 'animation'

它显示一个错误,这是输出

/cygdrive/d/Main/dot_proj/config.rb:7:in `require': cannot load such file -- animation (LoadError)
        from /cygdrive/d/Main/dot_proj/config.rb:7:in `initialize'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/extensions.rb:137:in `instance_eval'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/extensions.rb:137:in `initialize'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/ruby_encoding.rb:22:in `initialize'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/data.rb:35:in `initialize'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/application.rb:188:in `initialize'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/request.rb:56:in `new'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/request.rb:56:in `inst'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/preview_server.rb:73:in `new_app'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/preview_server.rb:154:in `mount_instance'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/preview_server.rb:19:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/cli/server.rb:73:in `server'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor.rb:275:in `dispatch'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/cli.rb:77:in `method_missing'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:29:in `run'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:126:in `run'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor.rb:275:in `dispatch'
        from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/cli.rb:22:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/bin/middleman:18:in `<top (required)>'
        from /usr/bin/middleman:23:in `load'
        from /usr/bin/middleman:23:in `<main>'

这是插件的链接 https://github.com/ericam/compass-animation

我猜我的中间人没有在中间人核心本身上安装插件?如果是,那么如何向中间人添加指南针插件?

4

0 回答 0