6
2

More than 3 years have passed since last update.

【GAS】clasp pushコマンド実行時に出たエラーの対処

Posted at

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の利用をオンに設定してあげる必要があった・・・。下記のリンクから設定可能。

スクリーンショット 2021-08-18 8.27.10.png

Google Apps Script APIの利用をオンにする事で、clasp pushが通るようになった。めでたしめでたし。

参考にさせて頂いた記事

Google Apps Script をローカル環境で快適に開発するためのテンプレートを作りました

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