LoginSignup
0
0

More than 1 year has passed since last update.

bundle exec rails new ~~~ -d postgresql -f でエラーが出たとき

Posted at

dbをpostgresqlを使おうとして『rails new 〜〜』をしようとしたら


bundler: failed to load command: rails 

can't find executable rails for gem railties. railties is not currently included in the bundle, perhaps you meant to add it to your Gemfile?

みたいなエラーが発生。

解決策?

やってみて解決した方法。

コンソール
$ bundle add rails
$ bundle install --path vendor/bundle

上記コマンドをコンソールで入力したら解決。

bundle exec rails new アプリ名 . -d postgresql 

その解決策になりそうなこと

PostgreSQLをインストール

最新のバージョンをインストール

brew install postgresql

バージョンの指定をしてインストール

brew install postgresql@10

その後にbundle installを実行

bundle install

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0