gpt4 book ai didi

ruby-on-rails - 我应该关注 yarn 警告吗

转载 作者:行者123 更新时间:2023-12-05 05:12:14 24 4
gpt4 key购买 nike

OS: Mac Mojave 10.14.3    

我的 gem 文件:

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.6.0'
gem 'rails', '~> 5.2.2'
gem 'mysql2', '>= 0.4.4', '< 0.6.0'
gem 'puma', '~> 3.11'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'webpacker'
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
gem 'bootsnap', '>= 1.1.0', require: false
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end
group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :test do
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
gem 'chromedriver-helper'
end

捆绑安装不会产生任何错误。

如果我这样做:

yarn add moment

这是我看到的:

yarn add v1.13.0
1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "@rails/webpacker > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697".
warning " > webpack-dev-server@2.11.2" has unmet peer dependency "webpack@^2.2.0 || ^3.0.0".
warning "webpack-dev-server > webpack-dev-middleware@1.12.2" has unmet peer dependency "webpack@^1.0.0 || ^2.0.0 || ^3.0.0".
[4/4] 🔨 Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
└─ moment@2.24.0
info All dependencies
└─ moment@2.24.0
✨ Done in 2.01s.

我尝试用谷歌搜索这些错误,但我没有深入了解。我确实得到了“成功保存了一个新的依赖项,但我无法想象这会在所有这些警告的情况下成功运行。有什么想法吗?

最佳答案

对等依赖项是项目假定您已安装的依赖项。您可以安装它们以使警告消失。您需要手动安装它们,只需对所需的依赖项执行 yarn add

就在那条消息中,它说你缺少哪个deps(caniuse-lite,webpack)

关于ruby-on-rails - 我应该关注 yarn 警告吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54777598/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com