如何修复“ NameError:未初始化的常量Uglifier”

时间:2019-03-13 22:37:18

标签: ruby-on-rails ruby rake

运行rake db:setup时出现错误:

  

deploy @ Exchange:〜/ .rbenv / peatio $捆绑执行rake db:setup   peatio_production已经存在   耙子流产了!   NameError:未初始化的常量Uglifier   /home/deploy/.rbenv/peatio/config/environments/production.rb:26:in block in <top (required)>   
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/railtie.rb:210:in instance_eval   
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/railtie.rb:210:in configure   
/home/deploy/.rbenv/peatio/vendor/bundle/ruby/2.5.0/gems/railties-4.2.11.1/lib/rails/railtie.rb:182:in configure   
/home/deploy/.rbenv/peatio/config/environments/production.rb:1:in <top (required)>

有人可以帮我吗?

1 个答案:

答案 0 :(得分:1)

这仅意味着您在某些地方有一些语法,很可能在JS文件中。检查您最近处理过的文件,并查找语法错误。