1. 报错信息
2. 报错代码
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:
npm ERR! C:\Users\Rattenking\AppData\Roaming\npm-cache\_logs\2024-10-25T01_47_25_855Z-debug.log
3. 问题原因
这个问题,是因为npm程序执行到未知流程节点中然后没有调用回调通知任务已执行完成,导致进程异常退出,据官方说法他们也没有太好的方式解决,建议直接升级npm版本!
4. 解决方案一
- 删除: node_modules 文件夹
- 删除: package-lock.json 文件
- 清楚npm缓存: npm cache clean --force
- 再执行: npm install
记录了,