1、问题:
liudezhi@Udizy toupiao % rails s
=> Booting Puma
=> Rails 6.0.3.7 application starting in development
=> Run `rails server --help` for more startup options
error Couldn't find an integrity file
error Found 1 errors.
========================================
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).
yarn check v1.22.10
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.
Exiting
liudezhi@Udizy toupiao %
2、其实办法就在提示里,依据提示:
To disable this check, please change `check_yarn_integrity`
to `false` in your webpacker config file (config/webpacker.yml).
yarn check v1.22.10
info Visit [https://yarnpkg.com/en/docs/cli/check](https://yarnpkg.com/en/docs/cli/check) for documentation about this command.
译文:若要禁用此检查,请更改“check\u\u integrity”`
在webpacker配置文件(config/webpacker.yml)中设置为“false”。
纱线检查v1.22.10
信息访问https://yarnpkg.com/en/docs/cli/check 有关此命令的文档。