Dependabot 建议编辑 yarn.lock 导致 Rails 服务器拒绝工作,说要运行“yarn install --check-files”

Dependabot suggestion to edit yarn.lock results in Rails server refusing to work, saying to run `yarn install --check-files`

提问人:Keith Bennett 提问时间:10/28/2023 更新时间:10/28/2023 访问量:21

问:

我有一个 Rails 应用程序,Dependabot 说:

Dependabot suggestion

当我按照该建议修改 yarn.lock 文件并尝试运行时,我得到这个:rails s

warning Integrity check: Lock files don't match
error Integrity check failed
error Found 1 errors.

========================================
  Your Yarn packages are out of date!
  Please run `yarn install --check-files` to update.
========================================

当我运行时,我的修改被原始的旧违规版本覆盖。yarn install --check-files

我该怎么办?

javascript ruby-on-rails hadoop-yarn 依赖机器人

评论

0赞 mplungjan 10/28/2023
我在某处看到这个:yarn install --frozen-lockfile

答: 暂无答案