• mac安装node失败


     ✘ jinhaiyang  ~  brew install node
    Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-cask, skipping update!
    Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-core, skipping update!
    Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/brotli-1.0.9.arm64_
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/c-ares-1.18.1_1.arm
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/icu4c-70.1.arm64_mo
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/libnghttp2-1.47.0.a
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/libuv-1.44.1_1.arm6
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/ca-certificates-202
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/openssl%401.1-1.1.1
    curl: (22) The requested URL returned error: 404
    
    Warning: Bottle missing, falling back to the default domain...
    ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1o
    ######################################################################## 100.0%
    ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha256:d8bb66
    ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/node-18.2.0.arm64_m
    curl: (22) The requested URL returned error: 404
    
    Warning: Bottle missing, falling back to the default domain...
    ==> Downloading https://ghcr.io/v2/homebrew/core/node/manifests/18.2.0
    ######################################################################## 100.0%
    ==> Downloading https://ghcr.io/v2/homebrew/core/node/blobs/sha256:9316585284696
    ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
    ######################################################################## 100.0%
    ==> Installing dependencies for node: brotli, c-ares, icu4c, libnghttp2, libuv, ca-certificates and openssl@1.1
    ==> Installing node dependency: brotli
    fatal: not in a git directory
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37

    安装的时候一直报错

    由于登陆用户不是HomeBrew的安装用户、所以报以上错误这里解决如下:
    1.在当前用户重新安装HomeBrew

     /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
    • 1

    2.运行brew install node提示成功

  • 相关阅读:
    个人博客管理系统
    分散式车辆协同:伯克利DeepDrive无人机数据集B3D
    Ribbon负载均衡
    消息队列实现进程间通信
    docker搭建rocketmq集群
    【牛客刷题】——Python入门 05 运算符(下)
    基于SSH开发网络在线考试系统
    【学习日志】2022.11.11 合同矩阵、惯性指数、委托构造、继承控制、=delete、可变参数模板类
    ArcGIS中如何为跨带数据投影?
    jmeter做压测
  • 原文地址:https://blog.csdn.net/weixin_43232423/article/details/125428948