npm安装vue报错:npm ERR! code ETIMEDOUT

2023-05-16

npm安装vue报错,信息如下:

C:\Users\Q>npm install -g @vue/cli
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.24.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\Q\AppData\Local\npm-cache\_logs\2022-06-07T07_02_48_517Z-debug-0.log

解决方法:
设置npm为阿里镜像

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

再次测试

C:\Users\Q>npm install -g @vue/cli
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated apollo-tracing@0.15.0: The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated graphql-extensions@0.15.0: The `graphql-extensions` API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
npm WARN deprecated apollo-cache-control@0.14.0: The functionality provided by the `apollo-cache-control` package is built in to `apollo-server-core` starting with Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#cachecontrol for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated subscriptions-transport-ws@0.9.19: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws    For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
npm WARN deprecated graphql-tools@4.0.8: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead

changed 897 packages in 35s

C:\Users\Q>vue -V
@vue/cli 5.0.4
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

npm安装vue报错:npm ERR! code ETIMEDOUT 的相关文章

随机推荐

  • slam报错大讲堂

    1 g2o链接文件找不到 error while loading shared libraries libg2o csparse extension so cannot open shared object file No such fil
  • initramfs错误导致无法进入系统

    说是不正常关机 导致的错误 总之就是开不了机了 并且弹出对话框 不知道输入啥 查网上说要 strong span style color 4da8ee fsck t ext4 dev sda1 span strong 但是没有卵用 其实到这
  • ubuntu下vscode 突然打不开

    https stackoverflow com questions 51027327 ubuntu 18 04 var lib snapd has other write 40777 报错如下 xff1a var lib snapd has
  • 普罗米修斯踩坑解法大合集

    主流1 仿真环境下报错 Not arming geofence RTL requiers valid home xff1b 以及Compass Sensors inconsistent等 去年买的跑个仿真还有地理围栏和校准传感器 xff0c
  • python集合问题大合集

    1 python 多维列表初始化 Python的列表相比于c 43 43 xff0c 很坑爹的一点是如果访问未赋值列表单元的位置 xff0c 是不能直接访问的 xff08 而c 43 43 有默认值为0 xff09 xff0c 例如 xff
  • 零基础入门无人机--无人机姿态--2

    四旋翼在其四个轴臂上四个桨的高速转动作用下 xff0c 会受到四个桨的拉力 xff0c 拉力方向与机身垂直 xff0c 当四个桨产生的拉力总和大于机身重力时 xff0c 飞机处于上升状态 xff1b 当总拉力小于机身重力时 xff0c 飞机
  • 使用harbor搭建docker私有仓库

    1 安装私有仓库 参照 xff1a https blog csdn net qq 35959573 article details 80664353 xff1b https www jianshu com p 32f077a3960e xf
  • python奇im巧技大合集

    1 嵌套函数下层函数修改上层函数变量值 问题 xff1a 在嵌套函数 xff0c 即def fun1 def fun2 类型的函数中 xff0c 如果函数fun2想要修改fun1中的变量 xff0c 就不能用global 来声明变量了 xf
  • linux系统下编译错误大合集

    1 pcl库相关报错 error divscalar is not a member of pcl traits error plus is not a member of pcl traits 后面一定还有一长串报错 xff09 解法 x
  • VSCode使用git-【界面化处理】

    此教程从创建一个git项目开始处理 xff0c 内容比较细致 xff0c 可以摘取需要的部分观看 目录 在gitee上创建一个git项目 VSCode同步远程代码仓库 git的提交操作 中途的小问题 回归正题 git的拉取操作 1 两个人在
  • 【ROS】Ubuntu18.04下安装ROS-Melodic的步骤及rosdep update报错的解决方案

    写在前面 xff1a 笔者从大二就开始接触ROS操作系统 xff0c 期间经历过多次ROS的安装与重装 xff0c 每一次都痛苦不堪 每一次的安装都会重复踩很多坑 xff0c 也会踩一些新坑 xff0c 因此借此机会打算把安装ROS Mel
  • 【C++】for循环中带冒号(:)用法简介

    基本用法 正常我们想要输出一个数组的全部元素时 xff0c 需要采用以下的方法 xff1a span class token comment 随机定义的数组 span span class token keyword int span ar
  • 阿里云物联网平台web端,可视化开发,简单实例

    Web可视化 阿里云物联网平台提供了一种可快速开发的web服务 xff0c 只需要拖入一些控件 xff0c 做一些配置就可以完成一个简单的物联网web应用 xff0c 对单一场景 xff0c 需求简单的项目非常实用 首先进入物联网平台 xf
  • K8s kubectl 报错 c-bash: _get_comp_words_by_ref: command not found解决过程

    K8s kubectl error xff1a c bash get comp words by ref command not found 故障现象 xff1a 新搭了个测试环境 xff0c 准备cka的考试 source lt kube
  • OpenSSH权限提升漏洞(CVE-2021-41617)修复 Centos 7升级Openssh 8.8

    OpenSSH权限提升漏洞 xff08 CVE 2021 41617 xff09 修复 1 准备工作2 安装必须的包3 下载OpenSsh 8 8p14 OpenSsh 解压安装5 配置文件修改6 重启服务7 意外 Centos 7升级Op
  • Jenkins 构建报错:Couldn‘t find any revision to build. Verify the repository and branch configuration for

    Jenkins 构建报错 Couldn 39 t find any revision to build Verify the repository and branch configuration for 1 错误信息 2 错误原因3 解决
  • 利用阿里云下载国外镜像,国内顺畅下载k8s.gcr.io的镜像

    国内顺畅下载k8s gcr io的镜像 1 起因 配置kube dns是3个k8s gcr io的镜像无法下载 报错如下 Error response from daemon Get https k8s gcr io v2 net http
  • PX4之启动脚本

    PX4通过rcS脚本来设定需要启动的程序 xff0c 比如设备驱动 控制模块 数据通讯等 rcS脚本在项目中的文件位置 ROMFS px4fmu common rcS 对应硬件平台固件上的位置 etc init d rcS 启动脚本流程如下
  • pip 使用阿里源

    pip 使用阿里源 使用pip install 的时候默认会去国外服务器下载 所以经常断开或者速度很慢 只需要在原来的命令后加上 i https mirrors aliyun com pypi simple即可直接从阿里源上安装 pip s
  • npm安装vue报错:npm ERR! code ETIMEDOUT

    npm安装vue报错 信息如下 C span class token punctuation span Users span class token punctuation span Q span class token operator