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!     
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-07-02T06_45_26_988Z-debug.log

解决方法

清楚npm缓存

npm cache clean -f

删除项目中的 package-lock.json 文件 和 node_modules 文件夹,然后再执行 npm install

npm install

你可能感兴趣的:(npm install 报错 npm ERR! cb() never called!)