首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装Sprangular时出错。未定义的方法`sprockets_v2?‘对于Ngannotate:模块

安装Sprangular时出错。未定义的方法`sprockets_v2?‘对于Ngannotate:模块
EN

Stack Overflow用户
提问于 2016-05-04 13:31:07
回答 1查看 102关注 0票数 0

提前感谢

我遵循这一点在本地安装sprangular。

https://github.com/sprangular/sprangular/wiki/setup-guide

我尝试了手动方法,也给出了同样的错误。

在执行bundle install时出现此错误

代码语言:javascript
运行
复制
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:89:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'sprangular'. (Bundler::GemRequireError)
Gem Load Error is: undefined method `sprockets_v2?' for Ngannotate:Module
Backtrace for gem load error is:
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/ngannotate-rails-1.2.2/lib/ngannotate/rails/railtie.rb:2:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/ngannotate-rails-1.2.2/lib/ngannotate/rails.rb:2:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/sprangular-0.1.0/lib/sprangular.rb:9:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler.rb:102:in `require'
/home/spider/Dropbox/Round360/myapp/config/application.rb:14:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require_application_and_environment!'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:51:in `generate'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
/home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:85:in `block (2 levels) in require'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/bundler-1.12.1/lib/bundler.rb:102:in `require'
    from /home/spider/Dropbox/Round360/myapp/config/application.rb:14:in `<top (required)>'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require_application_and_environment!'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:51:in `generate'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
    from /home/spider/.rvm/gems/ruby-2.3.0@rails-4.1.8/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'
EN

回答 1

Stack Overflow用户

发布于 2016-05-05 11:40:04

尝试使用bundle update而不是bundle install。你还安装了node.js吗?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37019215

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档