错误:没有这样的文件或目录@rb_sysopen - /var/www/ruby/blog/config/webpacker.yml (RuntimeError)

问题描述

我正在尝试在 rails 上启动 ruby​​,但是当我启动项目的服务器时,它告诉我 webpacker.yml 文件存在问题。

它在 ubuntu 服务器上并安装了 Yarn

$ sudo rails webpacker:install
rails aborted!
TypeError: superclass mismatch for class Command
/var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:2:in `<class:Thor>'
/var/lib/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:1:in `<main>'
/var/lib/gems/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
...
/var/www/ruby/blog/bin/spring:7:in `<top (required)>'
bin/rails:2:in `load'
bin/rails:2:in `<main>'
(See full trace by running task with --trace)

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)