npm warn cli npm v11.0.0 does not support Node.js v22.5.1. This version of npm supports the following node versions: `^20.17.0 || >=22.9.0`
I’ve been having some issues with running my vite app using npm, so I proceeded to update it with the command :- npm install -g npm@latest --force.
On checking the npm version, I get the following warning –
npm -v
npm warn cli npm v11.0.0 does not support Node.js v22.5.1. 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/.
11.0.0
So for some reason beyond my understanding, it has reverted back my npm version to 11.0.0.
How do I update it to a version greater than 22.9.0 as it says.
Read more here: Source link
