mdn / yari

The platform code behind MDN Web Docs
Mozilla Public License 2.0
1.16k stars 486 forks source link

fix(deps): bump required node version to >=18.18 #11373

Closed OnkarRuikar closed 1 day ago

OnkarRuikar commented 5 days ago

Summary

Build fails when node v18 is used.

Problem

Getting following error trying to do yarn install:

fsh$ yarn install
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error @typescript-eslint/utils@7.14.1: The engine "node" is incompatible with this module. Expected version "^18.18.0 || >=20.0.0". Got "18.17.1"
error Found incompatible module.

The files .nvmrc and package.json are recommending old versions of node.

Solution

Update .nvmrc and package.json files to use v18.18.0.

How did you test this change?

Tried yarn install command before and after the fix.