Ubuntu 20.04をインストールした後、Railsアプリを起動できません
トレースバックがあります。
また、同じエラーがあります。
...rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/etc.so: warning: already initialized constant Etc::...
次に、Railsのバージョンを確認しました。
消去を介してOSを再インストールした後、/home
からのバックアップを復元し、Ubuntu 18.04
とのバージョンを確認ruby
rails
しましたnodejs
。Ruby
とrails
同じでしたが、nodejs
いくつかのpostgres
パッケージをインストールする必要があります。さて、その後rails s
、プロジェクトフォルダで実行しようとしましたが、トレースバックからのエラーが表示されました。また、コマンド
yarn install --check-files
正常に終了できない、原因
info There appears to be trouble with your network connection. Retrying...
エラー。
アプリを正常に起動するにはどうすればよいですか?
私のgemfile:
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.6.3'
gem "rails_12factor"
# gem "hashid-rails", "~> 1.0"
gem 'dotenv-rails', groups: [:development, :test]
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.2', '>= 6.0.2.2'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 4.1'
# Use SCSS for stylesheets
# gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 4.0'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'
gem 'pry'
# Use Active Storage variant
# gem 'image_processing', '~> 1.2'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.2', require: false
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'rspec-rails'
gem 'database_cleaner'
gem 'selenium-webdriver'
end
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
end
gem 'minitest-rails'
group :test do
gem 'minitest-rails-capybara'
gem 'capybara', '>= 2.15'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem "active_model_serializers"
ルビー: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
Rails: Rails 6.0.2.2
ノード: v10.19.0
run `gem uninstall etc`
その後 gem update etc --default
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加