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


出现这个问题的原因可能是node在更换了新版本后,npm还是使用缓存中的npm,导致npm不支持node

2.在百度搜索node.js以往版本对照
node版本对照


然后根据自己的node版本来更新npm 版本
npm -g install npm@6.14.8


如果仍然报错,依旧显示npm 不支持这个版本 ,这说明npm存在旧的npm缓存,还是旧的npm 环境
此时需要到C:\Users\pc\AppData\Roaming 根目录下 删除npm, npm-cache两 个文件

在这里插入图片描述

然后执行 npm -g install npm@6.14.8

这后面就可以正常查看npm的版本了 npm -v

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐