一、背景

使用yarn在vscode终端执行yarn

二、遇到的问题

报错:

error An unexpected error occurred: "https://registry.npmmirror.com/@icon-park/vue-next/-/vue-next-1.4.2.tgzinfo If you think this is a bug, please open a bug report with the information provided in "E:\\college\\bloinfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn run v1.22.19

三、解决办法

方法1:
如使用yarn命令:
查看:

yarn config get registry

设置淘宝镜像:

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

效果图:

如使用mpm命令:
查看

npm config get registry

切换淘宝镜像

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

附件:


参考1: yarn : 无法将“yarn”项识别为 cmdlet、函数、脚本文件或可运行程序的名称 (推荐)
参考2:error An unexpected error occurred: “https://registry.npmmirror.com/moment: tunneling socket could

error An unexpected error occurred: https://registry.npmmirror.com相关推荐

  1. 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: ...

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

    Yarn 报错:error An unexpected error occurred: "https://registry.yarnpkg.com/-/user/org.couchdb.us ...

  3. error An unexpected error occurred: “https://registry.npmjs.org/d3-geo-proje

    error An unexpected error occurred: "https://registry.npmjs.org/d3-geo-proje yarn install 报错 大概 ...

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

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

  5. yarn install出现or An unexpected error occurred: “https://registry.npm.taobao.org/avue-plugin-ueditor

    yarn install  出现 error An unexpected error occurred: "https://registry.npm.taobao.org/avue-plug ...

  6. error An unexpected error occurred “httpsregistry.npmjs.orgd3-geo-proje

    error An unexpected error occurred: "https://registry.npmjs.org/d3-geo-proje yarn install 报错 大概 ...

  7. yarn 出现error An unexpected error occurred错误的解决办法

    国内使用npm安装点东西真是太恶心了, 动不动就报错,又是翻墙,又是切换淘宝镜像,又是使用cnpm,npx的各种花式操作,最近看到一个npm的替代品:yarn,安装之后本以为可以畅快的安装packag ...

  8. 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 ...

  9. 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 ...

  10. npm install XXX 报错:error An unexpected error occurred:

    npm install XXX 报错:error An unexpected error occurred: "EPERM: operation not permitted 我的解决办法是: ...

最新文章

  1. 简单几行程序轻松分析Excel
  2. php注解rbac,PHP的RBAC权限详解
  3. php里面电话验证码,PHP的中问验证码
  4. 在OpenShift上将JMS与JBoss A-MQ结合使用。 从远程客户端和加密中学到的经验教训。...
  5. 前端学习(2178):vue-router得参数传递二
  6. 如何使用网上下载的arcgis工具箱,报错汇总
  7. from mysql partition select_通过分区(Partition)提升MySQL性能[原创翻译]
  8. bzip2recover cat chattr chgrp chmod
  9. hdu 变形课 1181 这道题数据真实若爆了
  10. JDK8 有关集合部分常用的语法
  11. matlab多元正态性检验,Matlab正态分布性检验
  12. Pr入门系列之十四:处理音频
  13. 如何在SSH项目中布置多个定时任务?
  14. 【Linux集群教程】11 集群监控 - Zabbix 搭建
  15. 高中数学怎么学好我的数学学习方法
  16. G6-Editor 编辑器入门使用教程
  17. Java jdk 在线文档(可搜索类)
  18. 苹果笔记本有uefi启动吗_如何更换Windows 10的启动logo
  19. 正确使用数字化仪前端信号调理功能
  20. P3386 【模板】二分图最大匹配

热门文章

  1. 生成对抗网络GAN简单理解
  2. 浪潮服务器进银行采购项目,浪潮服务器入围交行2015年集采
  3. 错误:could not initialize proxy - no Session
  4. 【2023.7.5 学习进度汇报】
  5. 中职计算机专业第一年开什么课程,中职学校计算机专业课程教学(共2359字).doc...
  6. 什么是JWT?JWT详解
  7. 关于用AI搞金融这件事,瞎BB吹上天没用,听听实战的人怎么说
  8. [论+1]【CAFGCN】Cross-Attention Fusion Based Spatial-Temporal Multi-Graph Convolutional Network for
  9. THUCNews学习(CNN模型)
  10. 设计师能否在设计中熟练运用钣金工艺