LoginSignup
8
3

More than 3 years have passed since last update.

Firebaseへのdeployで"An unexpected error has occurred."と弾かれた時の対処法

Last updated at Posted at 2019-03-20

2時間近くハマって解決したので喜びのあまり投稿します。:smile: ただ自分の場合、レアな原因だったと思うのでどこまで役に立つか……。

FIREBASE-DEBUG.LOGを読もう

流石に表題のエラー表示だけでは曖昧すぎます。しかしエラーと同時にFIREBASE-DEBUG.LOGが同じ階層に生成されているはずなので読んでみましょう。

Error: write EIO

今回ログに”Error: write EIO"という気になる一文が混じっており調べた所、WindowsのコマンドプロンプトでUnicode対応のため文字コード変更してる時に起きるエラーだとか。……というわけで文字コード戻してdeployしたら成功しました:muscle:
Electronのメインプロセスのデバッグで日本語が文字化けして不便だったので、起動ショートカットに文字コード変更オプション(chcp 65001)を突っ込んでたんですが、見事に徒となりましたね:sweat_smile:

参考

Why this error happend? nodejs Error: write EIO

8
3
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
8
3