2
1

Nuxt2 Node.js 18へのバージョンアップの方針

Last updated at Posted at 2023-09-15

背景

弊社のnuxtプロジェクトの構成は以下です
nuxt v2.15
node v16
yarn

Node.jsでv16がEOLになった為、18にバージョンアップする必要が出た。

Nuxt2とNode.js v18のバージョンアップ対応について調査

  • Nuxt2のプロジェクトでNode v18は問題ないとのこと。

    The main change in this patch release is that we now patch the crypto node built-in during build to allow Nuxt 2 to be used on Node versions greater than Node 16, which should ease the pressure users feel after Node 16 reaches its own EOL this year.

    バージョン v2.16.2

よって以下の流れで対応するのが良いと思われる。

  • Node v16 → v18 バージョンアップ手順
    1. nuxt 2.15→2.17
    2. バージョンアップ時に出た修正、それに関するunit test
    3. node v18に上げる
    4. バージョンアップ時に出た修正、それに関するunit test
    5. Node v18 changeLogをチェック
      image.png
      CHANGELOG_V18.md
      長すぎて見れなくなっていた。
      Release Notes for Node.js 18
      Node.js 18 Release: What's New
    6. dev動作確認

次回はバージョンアップ時に出たエラー等の記事を書きます!

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