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

npm ERR! code ETIMEDOUT

在新建vue项目的时候报错 

npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://registry.npmjs.org/@vue%2fcli failed, reason: connect ETIMEDOUT 104.16.2.35:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Yxx\AppData\Local\npm-cache\_logs\2024-03-01T01_48_15_071Z-debug-0.log

说是网络问题但是我也改了淘宝镜像

npm config set registry https://registry.npm.taobao.org

但是还是报错,后来发现这个淘宝镜像已经在2022.06.30停用了,新的网址是

http://registry.npmmirror.com

npm config set registry http://registry.npmmirror.com

需要解除镜像并恢复到官方源:

npm config set registry https://registry.npmjs.org

查看npm源地址有没有换成功:

npm config get registry

淘宝镜像网

http://www.lryc.cn/news/309243.html

相关文章:

  • 动态规划(算法竞赛、蓝桥杯)--分组背包DP
  • 太阳能供电井盖-物联网智能井盖监测系统-旭华智能
  • 贪心 Leetcode 455 分发饼干
  • 策略开发:EMA如何计算
  • 学习Android的第二十天
  • Linux技巧|centos7|重新认识和学习egrep和grep命令
  • css实现背景渐变叠加
  • Unity(第二十四部)UI
  • VSCode通过SSH连接Docker环境进行开发
  • 【QT】QTableView或QTableWidget 搭配QLineEdit实现数据的搜索显示
  • Apache Flink连载(三十五):Flink基于Kubernetes部署(5)-Kubernetes 集群搭建-1
  • 快速幂(c++题解)
  • C#单向链表实现:Append,Move,Delete,InsertAscending, InsertUnAscending,Clear
  • python基础-基本数据类型深入-2.1
  • Android LiveData Cannot add the same observer with different lifecycles
  • MongoDB聚合运算符:$cmp
  • 【C++基础知识详细记录】
  • Socket网络编程(五)——TCP数据发送与接收并行
  • 2024最新-ubuntu22.04安装最新版QT6.6~6.8教程
  • STM32------分析GPIO寄存器
  • 数学实验-Matlab使用(1)
  • kafka文件存储机制和消费者
  • 《汇编语言》- 读书笔记 - 第15章-外中断
  • 【Vue3】CSS 新特性
  • 四信水电站泄洪预警方案,精准提升防汛应急水平
  • k8s中容器的调度与创建:CRI,cgroup
  • Unity安装与简单设置
  • 数据库的介绍、分类、作用和特点
  • 【Unity】机器人末端执行器仿真
  • 更换个人开发环境后,pycharm连接服务器报错Authentication failed