node.js使用npm install 报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! <https://npm.community>
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
原因:1.升级了node到v10.13.0,然后初始化npm install 一直报错
- 解决方法:
- 删除代理
- npm config rm proxy
- npm config rm https-proxy
如果还是不行就重新安装node.js,再执行删除代理步骤
- 安装地址:https://nodejs.org/en/download/ (node.js里面已经包含npm)
- 安装步骤:https://www.runoob.com/nodejs/nodejs-install-setup.html
- 删除代理