LoginSignup
0
0

More than 1 year has passed since last update.

メモ : claspで「Error: Looks like you are offline.」の対処方。

Posted at

claspでpush、pullなどを行うエラーになって少しハマったのでメモ書き。

エラー内容
$ clasp pull
⠙ Pulling files…script.google.com ✖
console.developers.google.com ✖
drive.google.com ✖
console.cloud.google.com ✖
Error: Looks like you are offline.

実行環境

macOS Big Sur v11.6.6
node v16.5.0
clasp v2.4.1

参考リンク

Clasp commands return offline error 90% of the time

対処法

自分の場合はclaspのバージョンが問題でした v2.3.1 だと問題なく実行出来きた。

バージョン変更コマンド
$npm install @google/clasp@2.3.1 -g

その他

nodeのバージョンv14.17.5で実行できた場合もあるみたい。

nodeバージョン変更方法

npmパッケージnを使用してバージョンを変更

インストール
$sudo npm install -g n
切り替え可能なバージョンの確認
$n ls-remote --all
# 出力
18.2.0
18.1.0
...
0.8.8
0.8.7
0.8.6
バージョンの切り替え
$sudo n 14.17.5

試したバージョンの組み合わせ

エラー
node v16.15.0
clasp v2.4.1

実行可
node v16.15.0
clasp v2.3.1

エラー
node v14.17.5
clasp v2.4.1

実行可
node v14.17.5
clasp v2.3.1

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