我刚安装了Ruby,然后又安装了rails。 创建了一个新项目。 并尝试运行它。
它抛出一个错误:
C:/Ruby27/lib/ruby/gems/2.7.0/gems/webpacker-4.3.0/lib/webpacker/configuration.rb:95:in `rescue in load': Webpacker configuration file not found C:/Users/user/Desktop/projects/Ruby/blog/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - C:/Users/name/Desktop/projects/Ruby/blog/config/webpacker.yml (RuntimeError)
经过研究,我了解到它需要属于node.js的Yarn
那是唯一的解决方案吗?
Os:Win10