问题描述:
npm WARN npm does not support Node.js v14.17.5
npm WARN npm You should probably upgrade to a newer version of node as we 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 functionnpm
ERR! A complete log of this run can be found in:npm
解决办法:
1、对照https://nodejs.org/zh-cn/download/releases/,查看node和npm相对的版本
2、更新npm 版本:npm -g install npm@6.14.14
如果更新失败:
删除C:\Users\**\AppData\Roaming下的npm和npm-cache文件夹
删除项目下的node_modules
再次执行npm -g install npm@6.14.14