npm v10.0.0 is known not to run on Node.js v12.8.0. This version of npm supports the following node

An error occurs when executing the command: ERROR: npm vxxx is known not to run on Node.js vxxx. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.

The error message says that your current npm version is vxxx and your current Node version vxxx is not supported. You need to change the node version to a version supported by npm. You can find the latest node version on the node official website. I recommend an article that explains how to replace node very clearly. Version: How to switch node version_node version switching_Tren Xiaosusu's Blog-CSDN Blog

Guess you like

Origin blog.csdn.net/qq_68155756/article/details/132664053