前提
ReactとRailsを使って簡単なTODOアプリを作っています。
rails g model todo name is_completed:booleanを実装中に以下のエラーメッセージが発生しました。
could not find gem 'sqlite3 (~> 1.4)' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems.
実現したいこと
- rails g modelコマンドでモデルを作成したいです
発生している問題・エラーメッセージ
could not find gem 'sqlite3 (~> 1.3.6)' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems. React_Rails_app % rails g model todo name is_completed:boolean Could not find gem 'sqlite3 (~> 1.4)' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems.
該当のソースコード
# Use sqlite3 as the database for Active Record gem "sqlite3", "~> 1.4"
試したこと
過去の質問でgem 'sqlite3', '~> 1.3.6'に置き換えると解決すると拝見したので変更したり,
bundle install --path vendor/bundleで関係のあるライブラリを vender/bundleにインストールする命令をしたりしましたが解決できませんでした、、、
bundle install --path vendor/bundleをすると以下エラーが出ます Gem::Ext::BuildError: ERROR: Failed to build gem native extension. An error occurred while installing sqlite3 (1.4.4), and Bundler cannot continue.
ぜひお力を貸していただきたいです><m(_ _)m
補足情報(FW/ツールのバージョンなど)
Ruby Rails yarn react
2.7.0 6.1.4.1 1.22.4 17.0.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/08/31 02:48
2022/08/31 04:03
2022/08/31 05:32