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>

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。