Yarn 报错:error An unexpected error occurred: "https://registry.yarnpkg.com/-/user/org.couchdb.user:alisone: connect ETIMEDOUT 104.16.26.35:443"

  • 原因分析
  • 解决方案

原因分析

在使用 yarn publish 命令发布 Generator 时报错,错误信息:
error An unexpected error occurred: “https://registry.yarnpkg.com/-/user/org.couchdb.user:alisone: connect ETIMEDOUT 104.16.26.35:443”

这是由于资源地址请求超时导致的,更换一下请求地址。

解决方案

运行命令,把资源地址设置成npm淘宝镜像

命令代码如下:

$ npm config set registry https://registry.npm.taobao.org
$ npm config set disturl https://npm.taobao.org/dist

yarn报错:error An unexpected error occurred: “https://registry.yarnpkg.com/-/user/org.couchdb。。。相关推荐

  1. 解决yarn错误error An unexpected error occurred: “https://registry.yarnpkg.com/hardhat: ETIMEDOUT“.

    在使用yarn安装依赖包时报错,提示信息:error An unexpected error occurred: "https://registry.yarnpkg.com/hardhat: ...

  2. Yarn 报错:error Couldn‘t publish package: “https://registry.yarnpkg.com/ 。。。Forbidden“

    Yarn 报错:error Couldn't publish package: "https://registry.yarnpkg.com/generator-alison-vue: For ...

  3. npm i报错npm ERR! network request to https://registry.npmjs.org/vue-router failed, reason: read ECONNR

    npm i报错npm ERR! network request to https://registry.npmjs.org/vue-router failed, reason: read ECONNR ...

  4. conda create新建环境失败报错:An unexpected error has occurred. Conda has prepared the above report.

    问题描述: 在linux中使用conda create命令新建环境报错如下: (base) [@localhost SPOT-1D-LM]$ conda create -n spot_1d_lm py ...

  5. npm安装 elementui 报错:404 Not Found - GET https://registry.npmjs.org/@vue%2fvue-loader-v15 - Not found

    情景 在创建好的Vue项目中安装element-ui,报错信息如下: 解决办法 1.删除项目的node_modules 2.执行命令:npm i element-ui -S 3.npm install ...

  6. yarn安装插件报错: An unexpected error occurred: “https://registry.npmjs.org/vue-router: connect ETIMEDOUT

    在安装vue-router的时候,终端报下面的错误 解决方法==>终端输入以下指令:yarn config set sass-binary-site http://npm.taobao.org/ ...

  7. 关于报错An unexpected error occurred: “https://registry.yarnpkg.com/react: socket hang up“

    很简单 别使用 npm国际的源,使用淘宝镜像源就行了. 解决的方法:换源 npm config set registry https://registry.npm.taobao.org 和 npm c ...

  8. Yarn报错:error Couldn‘t publish package: “https://registry。。。 Are you logged in as the correct user?“

    Yarn报错:error Couldn't publish package: "https://registry.yarnpkg.com/generator-vue: You do not ...

  9. yarn安装依赖包报错 error An unexpected error occurred: “https://registry.npm.taobao.orgnpm/element-ui: get

    yarn安装依赖包报错,error An unexpected error occurred: "https://registry.npm.taobao.orgnpm/element-ui: ...

最新文章

  1. 关于大型网站技术演进的思考(四)-存储的瓶颈4
  2. 030_html脚本
  3. centos6 rsync+inotify 数据同步
  4. 理解Linux系统中的load average(图文版)转载
  5. 数据加密:RSA 密钥
  6. 移动apn接入点哪个快_手机移动网络获取IPv6
  7. Linux下Weblogic创建域方法和步骤
  8. VB进度条 游戏血条控件
  9. Redis三大特殊类型介绍:GEO,hyperloglog,bitmap,Redis事务
  10. 计算机考研除了专业课还要学什么时候,计算机考研专业课什么时候开始看
  11. 手把手Django入门 初步实现管理职位后台
  12. 软件下载传送门(个人习惯自用记录)
  13. 【转】实现远程开机(电脑)的各种方法总结
  14. 操作系统学习(第一章————第二章)
  15. PhD Debate-8 | 迈向常识知识的高级语义理解
  16. 最新广告法规定禁用词汇,不幸被通报,官网小伙伴们记得文案检查下哈
  17. oracle check 日期大于,sql – 出生日期的CHECK约束?
  18. R语言作业:样本容量与好样本概率的关系
  19. 这些 JavaEE 知识你掌握了吗?
  20. 【转】如何让后端主动给web前端发数据

热门文章

  1. python——VS2017开发python与python3.6更新特性
  2. CentOS7.3编译安装php7.1
  3. mysql关联查询 事务 索引 外键
  4. 2011年华科计算机考研复试机试题真题
  5. 新建一个虚拟环境 用于django的项目
  6. mysql-查看表-修改表-删除表
  7. jquery-节点操作
  8. python使用print语句时显示特殊字符
  9. GitLab 简易指引(三):备份与恢复
  10. “反应快”的程序猿更优秀吗?