npm WARN npm npm does not support Node.js v16.14.2 npm WARN npm You should probably upgrade to a new

Posted 流楚丶格念

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm WARN npm npm does not support Node.js v16.14.2 npm WARN npm You should probably upgrade to a new相关的知识,希望对你有一定的参考价值。

报错

npm WARN npm npm does not support Node.js v16.14.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\\Users\\Yang\\AppData\\Roaming\\npm-cache\\_logs\\2022-05-17T02_08_10_465Z-debug.log

原因

npm版本过旧,安装最新版本

解决

这里碰到了一个死循环,使用npm升级语句也报上面的错,笑死

npm install -g npm@8.1

所以咱用cnpm去升级npm,运行下面语句就好了

cnpm install -g npm

以上是关于npm WARN npm npm does not support Node.js v16.14.2 npm WARN npm You should probably upgrade to a new的主要内容,如果未能解决你的问题,请参考以下文章

npm WARN cli npm v9.1.2 does not support Node.js v14.12.0. You should probably upgrade to解决方法

npm WARN cli npm v9.1.2 does not support Node.js v14.12.0. You should probably upgrade to解决方法

npm WARN cli npm v9.1.2 does not support Node.js v14.12.0. You should probably upgrade to解决方法

Node提示:npm does not support Node.js v12.16.3

npm WARN saveError EPERM: operation not allowed, rename 'C:\...\package.json.3542172463' -> 'C:\.

创建react工程报错:npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not