The new version of npm doesn't support Node.js 18.20.x
Description:
With the release of npm v11 the support for older Node.js was droped. Currently installing the nodejs-lts-hydrogen with npm as optional dependenci results in npm reporting following:
npm warn cli npm v11.0.0 does not support Node.js v18.20.5. This version of npm supports the following node versions:
^20.17.0 || >=22.9.0. You can find the latest version at https://nodejs.org/.
While npm still functions, its behavior depends on what the user intends to do. Adding a version specification to optdepends may help prevent potential issues.
Additional info:
From npm release notes:
npm now supports node ^20.17.0 || >=22.9.0
- package version(s): 18.20.5-1
Steps to reproduce:
- Run
pacman -S nodejs-lts-hydrogen npm - Execute
npm