【问题标题】:How to fix Yarn packages are out of date in terminal如何修复 Yarn 包在终端中已过期
【发布时间】:2019-07-29 16:52:28
【问题描述】:

我总是在安装yarn之后。

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

【问题讨论】:

标签: ruby-on-rails ruby yarnpkg


【解决方案1】:

试试:

  • 更新节点和纱线
  • 删除node_modules目录并再次运行yarn install

【讨论】:

    【解决方案2】:

    使用yarn --version 检查您的纱线版本。如果版本低于 1.21.1 使用curl --compressed -o- -L https://yarnpkg.com/install.sh | bash 更新。 运行 yarn install 在项目根目录上

    【讨论】:

      【解决方案3】:

      就像它所建议的那样,您是否输入了yarn install --check-files 来更新任何过时的软件包。您也可以通过yarn upgrade 进行更新。除非您确定在安装特定版本的软件包时不想升级。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-07-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-07-06
        相关资源
        最近更新 更多