1
0

Azure WebAppsでのNode.jsのバージョンを上げる

Last updated at Posted at 2024-01-21

Azure WebAppsにアプリケーションデプロイしてると無限に見る以下のエラー。バージョンアップ時におきました。

:( Application Error
If you are the application administrator, you can access the diagnostic resources.

スクリーンショット 2024-01-21 20.43.47.png

Node.jsのバージョンを上げたいなと思ってpackage.jsonの指定を上げたところ発生しました。

GitHub Actions経由でWebAppsにデプロイしているアプリケーションですが、GitHub Actionsでの指定では関係ないみたいですね。

ログストームで確認

ログストリームをみたら以下のようなエラーがでてました。

スクリーンショット 2024-01-21 20.44.42.png

error protoout-discord-bot@0.2.1: The engine "node" is incompatible with this module. Expected version ">=20.0.0". Got "18.17.1"

構成 -> 全般設定から変更

package.jsonやGitHub Actionsでの指定だけではなく、ここでも設定が必要です。

スクリーンショット 2024-01-21 20.43.29.png

確かにもともとAzureポータルだとNode - 18-ltsの表示だったけどNode - 20-ltsに更新されました。

スクリーンショット 2024-01-21 20.49.16.png

スクリーンショット 2024-01-21 20.55.44.png

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