我有一个运行Rails 6.0.0.beta1的新Rails应用程序,当我运行任何rails
,rails s
,{{1 }}等:
rails test
我在运行rails db:migrate
我一直在仔细检查此错误,无法弄清楚是什么原因造成的。有谁知道是什么原因造成的?
这里是错误的完整记录:
rails
=>引导彪马
=> Rails 6.0.0.beta1应用程序正在开发中
=>运行** ERROR: directory is already being watched! *
获得更多启动选项
**错误:目录已被监视! **
bundle exec guard
这是我的Gemfile:
rails server --help
还有我的Guardfile:
Directory: /Users/lee/Documents/Code/dashboard/node_modules/.bin/compression-webpack-plugin
is already being watched through: /Users/lee/Documents/Code/dashboard/node_modules/compression-webpack-plugin
MORE INFO: https://github.com/guard/listen/wiki/Duplicate-directory-errors
** ERROR: directory is already being watched! **
Directory: /Users/lee/Documents/Code/dashboard/node_modules/.bin/mini-css-extract-plugin
is already being watched through: /Users/lee/Documents/Code/dashboard/node_modules/mini-css-extract-plugin
MORE INFO: https://github.com/guard/listen/wiki/Duplicate-directory-errors
** ERROR: directory is already being watched! **
Directory: /Users/lee/Documents/Code/dashboard/node_modules/@rails/webpacker/node_modules/.bin/compression-webpack-plugin
is already being watched through: /Users/lee/Documents/Code/dashboard/node_modules/compression-webpack-plugin
MORE INFO: https://github.com/guard/listen/wiki/Duplicate-directory-errors
** ERROR: directory is already being watched! **
Directory: /Users/lee/Documents/Code/dashboard/node_modules/@rails/webpacker/node_modules/.bin/mini-css-extract-plugin
is already being watched through: /Users/lee/Documents/Code/dashboard/node_modules/mini-css-extract-plugin
MORE INFO: https://github.com/guard/listen/wiki/Duplicate-directory-errors
这似乎仅在Rails 6中发生。我在Rails 5上有类似的应用程序设置,但没有收到此错误。