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

执行命令时报错: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/.

报错说你现在的npm版本是vxxx 不支持你现在Node的版本vxxx,需要把node版本改成npm支持的版本,在node官网你可以找到最新node版本,推荐一篇文章讲的很清楚如何更换node版本:如何切换node版本_node版本切换_特伦小苏苏的博客-CSDN博客

猜你喜欢

转载自blog.csdn.net/qq_68155756/article/details/132664053
今日推荐