我正在使用Rails 6.0.3.4和Ruby 2.7.1,当我运行rails -s
时,我在终端中得到以下错误:
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 install --check-files
时,我收到以下错误:
yarn: error: no such option: --check-files
型
我在webpacker.yml中将check_yarn_integrity设置为false。
2条答案
按热度按时间bbmckpt71#
尝试使用
npm install --global yarn
v1uwarro2#
你确实应该使用
npm
来安装yarn
,但你应该在Docker内部安装。字符串
下面是我的Dockerfile的样子:
型
然后运行
docker-compose build
和docker-compose up
。应该能用