$firebase deployに失敗する

March 10, 2020

以下の様なエラーログが出てfirebase deployやlistなど基本的なコマンドが全て使えなくなってしまった

Error: Failed to get Firebase project PROJECT_NAME. Please make sure the project exists and your account has permission to access it.

Having trouble? Try again or contact support with contents of firebase-debug.log
error Command failed with exit code 2.
info Visit for documentation about this command.
$firebase logout
$firebase login