前端技术

npm install 报错 npm ERR! cb() never called!

2021-08-16 116 0

简介 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 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


点赞 0

文章评论

欢迎您:

阿文博客

人生的价值,并不是用时间,而是用深度量去衡量的。——列夫·托尔斯泰

59 文章 5993 浏览 5 评论

站点信息

  • 建站时间:2021-08-03
  • 更新时间:2021-08-03
  • 网站程序:终点线
  • 主题模板《今夕何夕》
  • 文章统计59篇文章
  • 标签总数14