淘宝镜像请求失败解决方法:request to https://registry.npm.taobao.org/vue-loader failed

这篇具有很好参考价值的文章主要介绍了淘宝镜像请求失败解决方法:request to https://registry.npm.taobao.org/vue-loader failed。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

npm install报错:request to https://registry.npm.taobao.org/vue-loader failed, reason: getaddrinfo ENOTFOUND registry.npm.taobao.org
解决:https://jingyan.baidu.com/article/acf728fd99b16ff8e510a301.html

查看镜像源:npm get registry
https://registry.npmjs.org/

国内npm镜像源设置
淘宝npm镜像
搜索地址:npmmirror 镜像站

registry地址:http://registry.npm.taobao.org/

cnpmjs镜像
搜索地址:npmmirror 镜像站

registry地址:http://r.cnpmjs.org/

使用方法:
临时使用npm --registry https://registry.npm.taobao.org install express
持久使用npm config set registry https://registry.npm.taobao.org

配置完成后可通过下面方式来验证是否成功
npm config get registry文章来源地址https://www.toymoban.com/news/detail-822182.html

到了这里,关于淘宝镜像请求失败解决方法:request to https://registry.npm.taobao.org/vue-loader failed的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 解决:InsecureRequestWarning:Unverified HTTPS request is being made to host ‘xx.cn’. Adding ......

    在使用之前的代码时,报错:D:/Anaconda_soft/envs/pytorch/lib/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host ‘www.dytt89.com’. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings 主要报错信息

    2024年02月01日
    浏览(31)
  • RequestContextHolder跨线程获取不到requests请求对象的解决方法

    最近在做一个项目,有个比较耗时的操作是启用线程进行异步操作,当时在启用的线程时,突然发现子线程无法获取父线程中的HttpServletRequest请求对象,因为是第一次遇到这种问题,所以记录一下解决方案。 在这里,我们简单模拟一下出现的问题。我们首先编写一个简单的

    2024年02月13日
    浏览(32)
  • Docker拉取镜像失败报错Error response from daemon: Get https://registry-1.docker.io解决办法

    无法拉取镜像的解决方法: 1、打开终端,sudo -i 输入密码。 2、打开 daemon.json(若没有自行创建) 3、写入以下内容: 4.重启docker设置生效: 5.docker info  看有没有生效 6.把114.114.114.114 换成8.8.8.8 添加 如下图所示

    2024年02月02日
    浏览(45)
  • 解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403

    今天想把一些项目的代码提交到git的时候,出现了‘https://gitee.com/XXX.git/‘: The requested returned error: 403 这个报错,然后我在网上找了些解决方法,最后是用这个方法解决的问题,原来我电脑的gitee之前不知道怎么配置的是上一家公司的gitee账号一直没有更改过来。 以下是更换

    2024年04月27日
    浏览(37)
  • restTemplate发送https请求报错I/O error on POST request for “xxxx“: Remote host terminated the handshake解决

    最近在项目开发中遇到了一个问题,用restTemplate调用https接口的时候一直掉不通,报错I/O error on POST request for “xxxx”: Remote host terminated the handshake;nested exception is javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake 远程主机终止了握手 一开始以为是SSL证书的问题。在百度

    2024年02月11日
    浏览(48)
  • 拉取docker私有仓库镜像报错http: server gave HTTP response to HTTPs client解决办法

    sudo docker pull 10.246.152.91:5000/xxx_image Error response from daemon Get \\\"https://10.246.152.91:5000/v2/\\\": http: server gave HTTP response to HTTPs client 创建文件/etc/docker/daemon.json, 文件内容如下: { “insecure-registries”: [ “10.246.152.91:5000” ] } 重启Docker服务:sudo service docker restart

    2024年01月23日
    浏览(38)
  • vue项目,代理请求https无响应 或 报错Error occured while trying to proxy的解决

    公司最近的项目测试环境需要将http为一个https了,于是将自签名证书导入到iis服务(由于后端由NetCore WebApi编写),绑定网站SSL,然后前端使用本地代理切换请求地址之后就发现请求没法正常返回,前端调试没有任何返回响应,有的浏览器会返回: Error occured while trying to pro

    2024年02月16日
    浏览(43)
  • 未知USB设备(设备描述符请求失败)解决方法之一

    网上很多帖子讲述了出现未知USB设备的处理情况。这里给大家提供一种其他的可能性,这是大部分帖子里都没讲到的。 将线插到电脑上其他USB口上,先排除是不是电脑USB口的问题(如果电脑是台式机,尝试插机箱背面的USB口,以增强供电;如果是笔记本,尝试插靠近电源口的

    2024年02月11日
    浏览(52)
  • 彻底解决:SunCertPathBuilderException: unable to find valid certification path to requested target错误的方法

    请求12306系统查票。之前正常的,现在提示这样的错误: Exception in thread \\\"main\\\" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 如下图:  导致原因:由

    2024年02月05日
    浏览(42)
  • unable to access https://github.com/....解决方法

    git config --global url.\\\"https://\\\".insteadOf git:// 可以把 git:// 替换成 https:// 方便使用 https 协议 相反的,如果想要将https 替换成 git,比如我们平时下载不到github的东西,提示 unable to access https://github.com/.......的时候就可以用 git config --global url.\\\"git://\\\".insteadOf https:// 这个方法来解决,意

    2024年02月13日
    浏览(39)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包