问题
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\HK28567\AppData\Roaming\npm-cache\_logs\2023-07-17T03_33_51_047Z-debug.log
通用解决方法
- 删除下载好的node_modules
- 删除package-lock.json文件
- 清除npm缓存 npm cache clean --force
- npm install
代理问题
E:\workpace\a>npm config get registry
https://registry.npm.taobao.org/
E:\workpace\a>npm config get proxy
null
E:\workpace\a>npm config get https-proxy
null
假如后面两个不是null,使用以下命令
npm config rm proxy
npm config rm https-proxy
我最后处理方法
我的以上方法都无法处理,看见代理想起来好像修改过hosts文件,删除 hosts文件中的
127.0.0.1 XXX
然后运行ipconfig /flushdns
解决问题