npm 不支持 Node.js v12.18.3 , npm和node的版本不匹配。
npm WARN npm npm does not support Node.js v12.18.3 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 4, 6, 7, 8, 9. 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的缓存。
C:\Users\Administrator\AppData\Roaming
找打这个目录
删除 NPM 和 NPM-Cache 文件夹,但是不要重新安装node 。删除后返回您的命令行并重新使用命令“ npm install -g npm@latest ”