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

FirebaseでCD使用とすると`base64: invalid input` で失敗するforMac

Last updated at Posted at 2026-01-25

はじめに

FirebaseでCDしようとするとErrorにハマって時間が溶けたのでまとめます
この記事はMacでの解決方法です。

エラー内容

base64: invalid input
Error: Process completed with exit code 1.

base64: invalid inputは、base64 -dに渡されたデータが有効なbase64文字列ではないことを示す。

解決方法

設定のときにファイルを開いて手でコピペしたことを思い出したので以下のコマンドを実行して解決した

base64 -i ~/Downloads/firebase-key.json | tr -d '\n' | pbcopy

※これはMacでのコマンドです。linux,windowsは違いますのでご注意を

fkafjagjakjgajfkajfajfajf
//ここの空行はまじで大切です

おわりに

今回は些細なことで数時間をも時間を溶かしたしまった。
教訓としてはたかがコピペだけど、手でやらずにコマンドを使用しよう!ってことかな

まだまだ、FirebaseのCDでエラーあるので記事にまとめます〜

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?