2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

firebase login ができない時の対処法

Last updated at Posted at 2020-05-30

概要

ReactをFirebaseにHostingしようとした際にハマったのでメモ

状況

yarn create react-app my-app

して

yarn add firebase-tools

して

firebase login

ちなみにこの後に聞かれるY/nはどっちでもいいです。

エラー

Firebase_CLI.png

何度やってもログインできない、、、。

対処法

調べたらこれをするといいらしい。

firebase login --no-localhost

これでもできない場合はsslの検証をパスする以下の環境変数を設定します。

export NODE_TLS_REJECT_UNAUTHORIZED=0
firebase login

Firebase_CLI-2.png
Woohoo!

解決

firebase init

:fire::fire::fire::fire:

? What do you want to use as your public directory? (public) //buildにします
yarn build
firebase deploy

で公開完了。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?