Error on setting up locally a brave browser, unable to setup the brave browser locally

After git clone and when I:
npm i

It shows the error like this:

npm warn EBADENGINE   required: { node: '>=20.0.0 <22.0.0', npm: '>=10.0.0' },
npm warn EBADENGINE   current: { node: 'v22.11.0', npm: '11.2.0' }
npm warn EBADENGINE }

added 6 packages, and audited 7 packages in 2s

2 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

I understand that it is related to the node version and npm version, which are above what is required, but why is the error, like the error should come when the version is lower and the required is higher? Why is it asking about downgrading the version?
Can also tell me how browser locally work, with step by step