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

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

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

FIREBASE-DEBUG.LOGを読もう

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

Error: write EIO

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

参考

Why this error happend? nodejs Error: write EIO

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