LoginSignup
2

More than 3 years have passed since last update.

Firebase CLIのfirebase-toolsバージョン7でfirebase initすると動かないエラー

Last updated at Posted at 2019-06-21

firebase-toolsのバージョンを最新にし、firebase hostingを使うために初期化しようとfirebase initコマンドを続行したら、プロジェクトのディレクトリを選択するところから一切動かせなくなった。

stackoverflowにも同じような問題が挙げられていて、どうやら最新版のfirebase-toolsだとこうなるようだ。
https://stackoverflow.com/questions/33944731/arrow-keys-do-not-work-with-firebase-init-command

対策:ダウングレードをする

firebase-toolsのダウングレードをしたら解決した。自分の場合はバージョン6でもダメだったので、バージョン5.1.1まで落とした。

npm install -g firebase-tools@^5.1.1

firebaseはプログラミング初心者も最近は取り組んでいるので、このエラーはしんどいなぁと思った。

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
2