问题
npm install的时候会抛出npm ERR! cb() never called! 异常,如下图!
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
解決办法
方法一
1、以管理员身份打开cmd命令行窗口,
npm cache clean -f
2、安装最新稳定版的Node
npm install -g n stable --force
3、重新安装包
npm install
方法二
1、删除node_modules
2、安装cnpm镜像源
npm install -g cnpm --registry=https://registry.npm.taobao.org
3、重新安装包
cnpm install