1
0

「npm WARN EBADENGINE」が表示される

Posted at

問題

コンソールから$ npm iを実行時、以下のワーニングが表示される

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@eslint/config-array@0.17.1',
npm WARN EBADENGINE   required: { node: '^18.18.0 || ^20.9.0 || >=21.1.0' },
npm WARN EBADENGINE   current: { node: 'v18.16.0', npm: '9.5.1' }
npm WARN EBADENGINE }
# 以下同様のワーニングが多数

原因

Node.jsのバージョンが違うことが原因でした。

npm WARN EBADENGINE Unsupported engine {
# インポート対象のパッケージ
npm WARN EBADENGINE   package: '@eslint/config-array@0.17.1',
# 必要なバージョン
# 「18.18.0」 または 「20.9.0」 または 「21.1.0以上」
npm WARN EBADENGINE   required: { node: '^18.18.0 || ^20.9.0 || >=21.1.0' },
# 現在のバージョンはv18.16.0
npm WARN EBADENGINE   current: { node: 'v18.16.0', npm: '9.5.1' }
npm WARN EBADENGINE }

解決

Node.jsのバージョンを対応のバージョン(今回は「18.18.0」)にして再度$ npm iを実行するとワーニングが解消されました。

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