专业的编程技术博客社区

网站首页 > 博客文章 正文

npm install 出现 npm ERR! This is an error with npm itself

baijin 2024-11-11 10:33:08 博客文章 2 ℃ 0 评论

学习笔记,供学习参考

总结的不错的话,记得点赞收藏加关注哦!

  1. 错误描述

npm下载依赖报错

PS C:\Development\Workspace\ky\integral-mall-master\integral-admin-web> npm install
npm ERR! Exit handler never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/cli/issues>

npm ERR! A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-09-24T01_46_17_888Z-debug-0.log
  1. 解决方案

第一个,使用程咬金,三板斧

删除下载好的node_modules
删除package-lock.json文件
清除npm缓存 npm cache clean --force
npm install

如果第一个不行,那就使用第二个,切换npm镜像,切到淘宝镜像

//查看镜像源
npm config get registry
//正常默认源:https://registry.npmjs.org/

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表