nodeJSバージョンアップ(Windows)
nodeJSのバージョンアップが必要(18.17.0以上を入れろと言われた)
> npm audit fix
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'next@14.2.8',
npm WARN EBADENGINE required: { node: '>=18.17.0' },
npm WARN EBADENGINE current: { node: 'v18.12.1', npm: '9.5.0' }
npm WARN EBADENGINE }
changed 3 packages, and audited 148 packages in 2s
33 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
現バージョン確認
必要バージョン(18.17.0)より古いことがわかる
> node -v
v18.12.1
アップデート方法
Windowsの場合公式ページから最新版をダウンロードしてインストールする
アップデート後のバージョンを確認してみる
> node -v
v20.17.0
再度インストール失敗したパッケージインストールを再トライ
> npm install next@latest react@latest react-dom@latest
up to date, audited 148 packages in 2s
33 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
インストールできたのか確認
> npm ls
myapp@ C:myapp
├── @types/node@20.11.16
├── @types/react@18.2.52
├── autoprefixer@10.4.17
├── next@14.2.8
├── postcss@8.4.33
├── react-dom@18.3.1
├── react@18.3.1
├── sass@1.70.0
├── tailwindcss@3.4.1
└── typescript@5.3.3
この記事が気に入ったらサポートをしてみませんか?