Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 运行rails-server时出错,接收错误:纱线:错误:无此选项:-完整性_Ruby On Rails_Ruby_Yarnpkg - Fatal编程技术网

Ruby on rails 运行rails-server时出错,接收错误:纱线:错误:无此选项:-完整性

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 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.
========================================


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和纱线的?什么操作系统?为我工作!非常感谢你。