エラー内容
|
$ firebase deploy === Deploying to 'firebare-app'... i deploying database, storage, firestore, functions, hosting npm ERR! A complete log of this run can be found in: Error: functions predeploy error: Command terminated with non-zero exit code4294963238 |
発生条件/原因/対処法
firebase deploy コマンド実行時に発生するエラー。
Windowsだと発生するエラー。
firebase.jsonを修正する。
| firebase.json |
|---|
| "functions": { "predeploy": [ "npm --prefix \"%RESOURCE_DIR%\" run lint", "npm --prefix \"%RESOURCE_DIR%\" run build" ] }, |
上記の様に\"$RESOURCE_DIR\"を\"%RESOURCE_DIR%\"に変更する。