安装laradock的时候,一直卡在

curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to raw.githubusercontent.com:443
/bin/sh: 1: .: Can't open /home/laradock/.nvm/nvm.sh
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_NODE} = true ]; then     mkdir -p $NVM_DIR &&     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash         && . $NVM_DIR/nvm.sh         && nvm install ${NODE_VERSION}         && nvm use ${NODE_VERSION}         && nvm alias ${NODE_VERSION}         && npm config set fetch-retries ${NPM_FETCH_RETRIES}         && npm config set fetch-retry-factor ${NPM_FETCH_RETRY_FACTOR}         && npm config set fetch-retry-mintimeout ${NPM_FETCH_RETRY_MINTIMEOUT}         && npm config set fetch-retry-maxtimeout ${NPM_FETCH_RETRY_MAXTIMEOUT}         && if [ ${NPM_REGISTRY} ]; then         npm config set registry ${NPM_REGISTRY}         ;fi         && if [ ${INSTALL_NPM_GULP} = true ]; then         npm install -g gulp         ;fi         && if [ ${INSTALL_NPM_BOWER} = true ]; then         npm install -g bower         ;fi         && if [ ${INSTALL_NPM_VUE_CLI} = true ]; then         npm install -g @vue/cli         ;fi         && if [ ${INSTALL_NPM_ANGULAR_CLI} = true ]; then         npm install -g @angular/cli         ;fi         && ln -s `npm bin --global` /home/laradock/.node-bin ;fi' returned a non-zero code: 127

百度的时候,有很多说关掉vpn,替换host的raw.githubusercontent.com的ip,无效
网上找了好久,在一个不起眼的小帖子上看到了一个解决方案,抱着试一试的心态,没想到还真的可以,记录一下,方便以后查找
在laradock项目下的laradock/workspace/Dockerfile文件中
找到

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh|bash \

替换成

curl -o- https://monitor-majors.oss-cn-shenzhen.aliyuncs.com/install.sh|bash \

就可以了
说白了,这就是将原来的地址换成了国内的镜像地址,

laradock卡在raw.githubusercontent.com,怎么办相关推荐

  1. windows10 ubuntu 无法连接到 无法建立到 raw.githubusercontent.com 的服务器 IP 地址,解决办法

    无法连接到 raw.githubusercontent.com 的服务器 IP 地址,解决办法 在C:\Windows\System32\drivers\etc路径下找到hosts文件 添加 以下内容 ...

  2. 已解决:Connecting to raw.githubusercontent.com |185.199.109.133|:443... Unable to establish SSL connect

    1.问题描述 搭建k8s集群时,有一步需要部署flannel网络,首先需要下载一个yml文件,下载方式如下: wget https://raw.githubusercontent.com/coreos ...

  3. 解决ERROR: cannot download default sources list from:https://raw.githubusercontent.com/ros/rosdistro/m

    解决ERROR: cannot download default sources list from:https://raw.githubusercontent.com/ros/rosdistro/m ...

  4. curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443

    MacOS系统使用Homebrew官方地址时,报错 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew ...

  5. raw.githubusercontent.com无法连接

    raw.githubusercontent.com无法连接 1. 错误状态 2. 解决办法 1. 错误状态 在添加ROS 2 apt存储库时老是失败 sudo apt update && ...

  6. MAC 安装brew raw.githubusercontent.com port 443: Connection refused 本人亲自认证过,踩过多种方案,最终认证的解决方案

    MAC 安装brew raw.githubusercontent.com port 443: Connection refused 本人亲自认证过,踩过多种方案,最终认证的解决方案 原因:由于某些你懂 ...

  7. failed to connect to raw.githubusercontent.com port 443: Connection refused

    failed to connect to raw.githubusercontent.com port 443: Connection refused 遇到问题 解决方案 oh-my-zsh nvm ...

  8. 2019-11-26 https://raw.githubusercontent.com和谐/gfwlist/gfwlist/master/gfwlist.txt

    https://raw.githubusercontent.com和谐/gfwlist/gfwlist/master/gfwlist.txt

  9. 014 Unbox failed! RequestError: Error: getaddrinfo ENOENT raw.githubusercontent.com raw.githubuserco

    执行 truffle unbox pet-shop 报错,因为无法连接raw.githubusercontent.com,需要翻墙或者配置本地host文件 解决方案: 1.通过   https://w ...

最新文章

  1. 再创新高:DeepMind一年烧掉6.5亿美元,谷歌却挥手免除15亿债务
  2. Master/Slave知识
  3. cmake 指定编译器_我们需要懂得CMake文件
  4. 【ElasticSearch】Es 源码之 CcrRestoreSourceService 源码解读
  5. c#.net操作注册表RegistryKey
  6. python字符串常用函数-Python字符串常用函数详解
  7. 独家下载 | 《Redis+Nginx+设计模式+Spring全家桶+Dubbo》,附 PDF 架构书籍 下载
  8. Eclipse常用插件下载
  9. java 裁剪 pdf_PDFBox:使用Java轻松从PDF文件提取内容
  10. 2021年最值得推荐的29个开源软件,想提升自己的程序员赶快收藏
  11. 管螺纹如何标注_你所不知道的机械螺纹全面常识(分享篇),赶紧收藏下吧
  12. 信息检索与利用(第三版)第二章信息资源与信息源
  13. mysql怎么设置不要密码_mysql无密码怎么设置密码
  14. 802.11 Tx Rate Control
  15. 惠普HP Color LaserJet Enterprise MFP M577c 驱动
  16. 【官宣】BSV工程师能力认证项目在CSDN推出线上学习平台
  17. 【STM32H7】第2章 ThreadX FileX文件系统介绍
  18. 非视线成像:角膜成像系统
  19. 智源社区AI周刊No.99:OpenAI发布接近人类水平的语音识别系统Whisper;马毅:智能的计算和科学研究将融合...
  20. 常用音频软件大比拼,再也不为选择哪一款犯愁了!

热门文章

  1. 小飞升值记——(终章)
  2. [笔记分享] [Hardware] MSM8x60 User Guide study report
  3. 土地资源管理就业怎么这么难_土地资源管理就业前景怎么样
  4. 小程序配置“企业微信客服”的流程步骤
  5. android sqlite 分词,SQLite 之FTS5全文检索
  6. java 生成纯色图片_java实现切图并且判断图片是不是纯色/彩色图片
  7. 本地获取谷歌 获取经纬度 海拔
  8. comsol学习总结-------热
  9. 阿朱推荐的产品经理读物30本书(修订版)
  10. 解决宝塔面板Nginx反向代理Cloudflare出现502或403错误