npm WARN npm npm does not support Node.js v14.14.0【亲测可用】
报错内容
npm WARN npm npm does not support Node.js v14.14.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can’t make any promises that npm will work with this version.
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\pc\AppData\Roaming\npm-cache_logs\2023-1-23T08_30_48_208
Z-debug.log
报错原因
node与npm版本不匹配
参考官网版本对应 (https://nodejs.org/zh-cn/download/releases/),下载对应的node.js版本和更新npm版本
查看自己电脑node与npm版本
npm -v
node -v
解决办法【亲测可用】
指定一个版本
可见我的另一篇文章
升级或指定nodejs【亲测可用】