Jac*_*Van 10 ruby ruby-on-rails yarnpkg
我总是装完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).
Run Code Online (Sandbox Code Playgroud)
使用yarn --version. 如果版本低于 1.21.1 使用curl --compressed -o- -L https://yarnpkg.com/install.sh | bash. yarn install在项目根上运行
就像它建议的那样,您是否放入了yarn install --check-files应该更新任何过时的软件包。您还可以进行yarn upgrade更新。除非您确定不想升级,在这种情况下,当您安装特定版本的软件包时。