npm安装报错:
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\Administrator\AppData\Roaming\npm-cache\_logs\2020-12-16T07_38_47_793Z-debug.log
在查找后使用了很多方法后都没有作用,特别是说删除node_modules文件夹,然后清除npm记录,在重新npm下载,然而使用之后没有效果;
接下来我就说一下我的解决办法:我报这个错误之后发现是node版本的问题,只有个别几个node版本引发的报错;
第一步:通过安装一个nvm 来对node版本进行管理,可以按照这个连接上的下载操作,非常好安装也很快不会占用多少时间,也不用进行一些配置;
第二步:下载nvm好后,下载需要的 node 版本