LoginSignup
1
0

More than 5 years have passed since last update.

rails consoleが起動しないエラー(Usage: rails new APP_PATH [options])

Last updated at Posted at 2018-05-26

問題の事象

githubからクローンしたレポジトリ上で、rails consoleを起動しようしたら下記のエラーが出て起動しない。

エラー内容

$ rails -c
Usage: rails new APP_PATH [options]
~~~以下略~~~

試したこと

  • rails -vでのバージョン確認。
$ rails -v
Rails 5.2.0
  • rails new APP_PATH [options]時のAPP_PATHにディレクトリを移動

-> だいたいこれで解決してる。

$ cd /APP_PATH
$ rails -c
Usage: rails new APP_PATH [options]

根本的に間違っていた。

...これはおかしい。
そもそもrailsで作られているのか?と思い仕様書を確認。

レポジトリの仕様書をもう一度見たら、railsではなくangularでした。。。

というオチ。

1
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
1
0