User has not enabled the Apps Script APIというエラー
GASをローカルで開発する際に便利なCLIであるclasp導入時に発生したエラー。
初期設定としてclasp login
が完了しているにも関わらず、clasp push
を実行すると下記エラーメッセージが表示されて、pushに失敗する。
GaxiosError:User has not enabled the Apps Script API.
Enable it by visiting then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
結論、開発で使用するGoogleアカウントの設定でGoogle Apps Script API
の利用をオンに設定してあげる必要があった・・・。下記のリンクから設定可能。
Google Apps Script API
の利用をオンにする事で、clasp push
が通るようになった。めでたしめでたし。