
一、 npm 运行错误:npm ERR! cb() never called!
```
D:\ProgramFiles\nodejs>npm install
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! D:\ProgramFiles\nodejs\node_cache\_logs\2018-12-26T11_06_54_492Z-debug.log
```
二、 错误原因
- node_module文件缓存导致
- 设置代理导致
三、 解决方案
- npm指令清除npm缓存:
```
npm cache clean --force
```
- 删除node_module包
- 删除代理:
```
npm config rm proxy
npm config rm https-proxy
```
操作完以上步骤问题基本就解决了,如果还又错误就要详细看看是什么错误了!