ruby-on-rails - 如何在终端中修复Yarn包已过期

标签 ruby-on-rails ruby yarnpkg

我总是被装纱后。

=> Booting Puma
=> Rails 6.0.0.rc2 application starting in development 
=> Run `rails server --help` for more startup options
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).

最佳答案

尝试:

  • 更新节点和 yarn
  • 删除node_modules目录并再次运行yarn install
  • 关于ruby-on-rails - 如何在终端中修复Yarn包已过期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57258233/

    相关文章:

    node.js - yarn 全局添加 <package> 给出错误 "couldn' t 在 npm 注册表上查找包”

    ruby-on-rails - Rails 2.3.9 中 2 个模型 (fields_for) 的 1 个提交按钮

    Docker COPY 文件使用 glob 模式?

    html - 将 DIV block 保持在同一行

    ruby-on-rails - 在 Rails 中,如何在 i18n 语言环境文件中指定默认 flash 消息

    ruby - 无法修改字符串的行

    ruby - Ruby 点符号和运算符符号之间的区别

    npm - yarn 和 npm 在实践中可以互换吗?

    ruby-on-rails - 从 Json 响应中删除属性

    ruby-on-rails - Rails 中是否有任何方法可以将分钟作为整数转换为天、月等