Ruby on rails 运行rails-server时出错,接收错误:纱线:错误:无此选项:-完整性
我在Rails 6.0.3.4和Ruby 2.7.1中工作,当我运行Ruby on rails 运行rails-server时出错,接收错误:纱线:错误:无此选项:-完整性,ruby-on-rails,ruby,yarnpkg,Ruby On Rails,Ruby,Yarnpkg,我在Rails 6.0.3.4和Ruby 2.7.1中工作,当我运行Rails-s时,终端中出现以下错误: Usage: yarn [options] yarn: error: no such option: --integrity ======================================== Your Yarn packages are out of date! Please run `yarn install --check-files` to update
Rails-s
时,终端中出现以下错误:
Usage: yarn [options]
yarn: error: no such option: --integrity
========================================
Your Yarn packages are out of date!
Please run `yarn install --check-files` to update.
========================================
To disable this check, please change `check_yarn_integrity`
to `false` in your webpacker config file (config/webpacker.yml).
当我运行warn install--check files
时,我收到以下错误:
yarn: error: no such option: --check-files
我确实在webpacker.yml中将check\u warn\u integrity设置为false。尝试使用
npm安装--global warn
您的warn安装可能已过时。您最初是如何安装npm和纱线的?什么操作系统?为我工作!非常感谢你。