无法运行旧版本编码的app,提示 :Your Yarn packages are out of date! Please run `yarn install --check-files` t...

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 有关此命令的文档。

Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules

3、编辑器打开app,找到路径:config/webpacker.yml

把 development: 栏目下的

check_yarn_integrity: true 更改为:

check_yarn_integrity: false

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容