Error encountered while downgrading NPM version
P粉195200437
P粉195200437 2023-09-21 08:42:32
0
1
613

Tried updating the NPM version of some dependencies, now I need to downgrade to an older version, but I can't do that.

Current NPM version: npm v9.8.1

Error: npm v9.8.1 is known to not run on Node.js v12.22.11. This version of npm supports the following node versions: ^14.17.0 || ^16.13.0 || >=18.0.0. You can find the latest version at https://nodejs.org/.

P粉195200437
P粉195200437

reply all(1)
P粉766520991

Your Node.js version is incompatible with the NPM version, as stated in the error. Downgrade the Node.js version via NVM, which will also downgrade NPM to the corresponding version.

nvm use 12
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!