报错的信息信息
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
报错场景还原
在github中下载vue-antd-admin项目的压缩包,本地解压,然后使用npm i安装项目所需要的依赖,上面说的错误。
分析问题
看报错的问题,得知该错误是npm本身的错误,由于安装该项目依赖之前,本人已成功的安装并执行过其他vue项目,因此排除npm和node安装的问题。npm已经配置了淘宝镜像,而且 度娘 上的解决方法基本上试了一遍,都没有效果,因而很有可能是有些依赖包的下载需要连外网
解决方法
连接外网,使用git将vue-antd-admin项目再clone一遍,然后使用npm i安装依赖,项目成功运行