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

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,刷新状态

相关文章:

  • VOS3000线路对接、路由配置与路由分析操作教程
  • 前端八股——JS+ES6
  • always和assign语法区别
  • 内外网数据安全摆渡与FTP传输的对比
  • vue-fastapi-admin 部署心得
  • Mybatis缓存机制
  • DeepSeek 给我一个 DeepSeekUI 页面
  • 基于Springboot学生宿舍水电信息管理系统【附源码】
  • 加班限制了进步
  • DVWA 靶场
  • 14.9 Auto-GPT 提示工程深度解析:设计具备自主决策能力的智能体大脑
  • CSS滤镜(filter)和混合模式(blend mode)的使用场景
  • 使用docker配置PostgreSQL
  • Java值传递,会影响原值的原因
  • vivado修改下载器下载速率
  • OpenCV(6):图像边缘检测
  • 如何在cursor上使用 deepseek 模型
  • 自用开发的商标和工作小工具!
  • 行业分析---对自动驾驶规控算法的思考
  • x-cmd mod | x theme (1) - 终端美化利器,一键切换终端主题,内置 120+ 种终端主题
  • 病重老人被要求亲自取钱在农业银行门口去世?株洲警方介入
  • 问责!美国海军对“杜鲁门”号航母一系列事故展开调查
  • 与总书记交流的上海人工智能实验室年轻人,在探索什么前沿领域?
  • 国新办将就2025年4月份国民经济运行情况举行新闻发布会
  • 金砖国家召开经贸联络组司局级特别会议,呼吁共同抵制单边主义和贸易保护主义
  • A股午后拉升,沪指收复3400点:大金融发力,两市成交超1.3万亿元