当前位置: 首页 > article >正文

npm使用了代理,但是代理软件已经关闭导致创建失败

如果在关闭前打开了vscode,此时vscode中的终端没有刷新,就会出现这个问题,最开始会一直转圈圈,直到超时,然后出现该报错

npm create vue@latest
npm error code ECONNREFUSED
npm error syscall connect
npm error errno ECONNREFUSED
npm error FetchError: request to https://registry.npmjs.org/create-vue failed, reason: connect ECONNREFUSED 127.0.0.1:12334
npm error     at ClientRequest.<anonymous> (/home/ying/.nvm/versions/node/v22.13.1/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm error     at ClientRequest.emit (node:events:524:28)
npm error     at emitErrorEvent (node:_http_client:104:11)
npm error     at _destroy (node:_http_client:898:9)
npm error     at onSocketNT (node:_http_client:918:5)
npm error     at process.processTicksAndRejections (node:internal/process/task_queues:91:21) {
npm error   code: 'ECONNREFUSED',
npm error   errno: 'ECONNREFUSED',
npm error   syscall: 'connect',
npm error   address: '127.0.0.1',
npm error   port: 12334,
npm error   type: 'system'
npm error }
npm error
npm error If you are behind a proxy, please make sure that the
npm error 'proxy' config is set properly.  See: 'npm help config'
npm error A complete log of this run can be found in: /home/ying/.npm/_logs/2025-02-22T07_28_54_852Z-debug-0.log

解决办法

重新打开vscode,刷新状态


http://www.kler.cn/a/559808.html

相关文章:

  • 使用 AIStor 和 OpenSearch 增强搜索功能
  • 基于Spring Boot的公司资产网站设计与实现(LW+源码+讲解)
  • 高清下载油管视频到本地
  • 【MySQL篇】数据库基础
  • C++访问MySQL数据库
  • 百度首页上线 DeepSeek 入口,免费使用
  • 【Word转PDF】在线Doc/Docx转换为PDF格式 免费在线转换 功能强大好用
  • 微信小程序修改个人信息头像(uniapp开发)
  • 【爬虫】request库
  • SpringBoot速成概括
  • 大气体育直播模板赛事扁平自适应模板源码
  • c++ std::list使用笔记
  • 高校选课系统数据库设计MySQL
  • QT(5.15)之QGC(4.4)安装教程
  • 数据结构与算法学习笔记----树形DP
  • 当前就业形势下C++方向后端开发学习指南
  • JAVA EE初阶 JVM
  • centos服务器巡检脚本
  • AWQ和GPTQ量化的区别
  • 接口测试基础 --- 什么是接口测试及其测试流程?