vue 处理npm ERR! This is an error with npm itself. Please report this error at:npm ERR!

一、前言

说明: 从git 或者svn 上下载一个新的vue工程,使用npm install安装项目依赖的时候报错,记录一下解决方法;

二、问题描述

错误信息:

npm ERR! Exit handler never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! <Issues · npm/cli>

npm ERR! A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-08-07T07_45_31_060Z-debug-0.log

截图如下:

三、处理办法

  1. 删除下载好的node_modules

  2. 删除package-lock.json文件

  3. 设置可用的npm镜像仓库(自己公司或者公用的) npm config set registry=http:/***:8081/repository/npm/

  4. 清除npm缓存 npm cache clean --force 或者是 npm cache verify

  5. npm installl

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值