0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Herokuのアップデート対処

Posted at

Herokuのアップデートに失敗したときの対処を備忘録として残しておきます。

アップデートコマンド実行時(失敗)

Herokuの実行ログを見ていると、下記の表示が出てきたため、バージョン更新コマンドheroku updateを実行した。

root@raspberry:/home/pi# heroku logs --app sample-project
 ?   Warning: heroku update available from 7.42.1 to 7.47.0.
(省略)
root@raspberry:/home/pi# heroku update
 ?   Warning: update with: "npm update -g heroku"
heroku: Updating CLI... not updatable
Updating completions... done

しかし、herokuアップデートに失敗した。

対処

上記のログ通り、npm update -g herokuを実行して解決した。

root@raspberry:/home/pi# npm update -g heroku
npm WARN npm npm does not support Node.js v10.19.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
(省略)
/usr/local/bin/heroku -> /usr/local/lib/node_modules/heroku/bin/run
+ heroku@7.47.0
added 250 packages from 38 contributors, removed 4 packages, updated 98 packages and moved 2 packages in 238.005s

確認

バージョンアップを下記のコマンドでも確認した。

root@raspberry:/home/pi# heroku version
 ?   Warning: Our terms of service have changed:
 ?   https://dashboard.heroku.com/terms-of-service
heroku/7.47.0 linux-arm node-v10.19.0
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?