Help us understand the problem. What is going on with this article?

vagrant + firebase loginでブラウザ認証が失敗する場合の解決方法

More than 1 year has passed since last update.

こんな時

vagrantで立ち上げたVM上でfirebase login => ブラウザ認証がしたい
しかし…

$ firebase login

? Allow Firebase to collect anonymous CLI usage and error reporting information? Yes

Visit this URL on any device to log in:
https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxxxxxxxxxxx....

login.PNG

fail.PNG

:sob:

こうなった時

解決

VM ⇔ ホストPCで9005ポートをフォワーディングさせる
Vagranfileに以下を追記し、VMを再起動

Vagrantfile
Vagrant.configure("2") do |config|
   # something

  config.vm.network "forwarded_port", guest: 9005, host:9005 # Add this line!

  # something
end

再起動後、VM上でfirebase login ⇒ ブラウザ認証してみる

firebase login

success.PNG

いけたー:blush:

nishiurahiroki
宇宙の全てを理解したい。 実はもう理解していてただ忘れているだけなのかもsr)ハロウィン🎃!ハロウィン🎃!ハロウィン🎃!
it-geinin
技術を使って日々面白いことに挑戦し、Qiitaに投稿します。技術を楽しむ会です。
http://it-geinin.org/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした