在终端输入 brew install node 回车 报错如下图

brew install node
==> Installing dependencies for node: icu4c
==> Installing node dependency: icu4c
==> Downloading https://homebrew.bintray.com/bottles/icu4c-62.1.mojave.bottle.ta
Already downloaded:
/Users/lvhongjian/Library/Caches/Homebrew/downloads/2ac513734226effaf79e199fb1612ebce7842df443578bcd61afd73767858aef–icu4c-62.1.mojave.bottle.tar.gz
Error: No such file or directory @ dir_chdir - /usr/local/Cellar
Warning: Bottle installation failed: building from source.
==> Downloading https://ssl.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz
Already downloaded:
/Users/lvhongjian/Library/Caches/Homebrew/downloads/b79f5dd51110fb1096e57fc35ba03df84f69142b0374bae8a0381edde5a80448–icu4c-62_1-src.tgz
Error: An exception occurred within a child process: Errno::EPERM:
Operation not permitted @ dir_s_mkdir - /usr/local/Cellar

解决办法

由于登陆用户不是HomeBrew的安装用户、所以报以上错误这里解决如下:
1.在当前用户重新安装HomeBrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.运行brew install node提示成功

brew install node 报错:Error: No such file or directory @ dir_chdir Bottle installation failed:相关推荐

  1. npm install执行报错:ENOENT: no such file or directory, open ‘D:\Node\package.json‘

    npm install执行报错:ENOENT: no such file or directory, open 'D:\Node\package.json' 这句话的意思大概是 没有 package. ...

  2. Mac系统brew install 安装报错 Error: Failure while executing

    Mac安装Apache http服务器,brew install httpd 时报错 报错信息如下: ==> Installing httpd dependency: nghttp2 ==> ...

  3. MacOS Catalina 10.15.5 解决 brew install svn 报错Error: You are using macOS 10.15. We do not provide…

    由于macOS系统自带svn,所以项目使用svn可以直接本地终端完成调用,但是在使用时会遇到,不能使用svn的报错: svn: error: Failed to locate 'svn'. svn: ...

  4. Pycharm 转化ui文件为py文件:报错Error in input file: not well-formed (invalid token): line 1, column 1

    利用PyUIC转化 .ui文件为 .py文件时,报错 Error in input file: not well-formed (invalid token): line 1, column 1 我出 ...

  5. 【致敬嵌入式攻城狮第2期活动预热征文】解决瑞萨RA2E1开发板在RT-Thread的版本中编译报错 error: ‘board_cfg.h‘ file not found

    解决瑞萨RA2E1开发板在RT-Thread的版本中编译报错 error: 'board_cfg.h' file not found 继上上周在RA2E1开发板上跑通了RT-Thread最新版本的代码 ...

  6. 在NVIDIA Jetson Xavier NX上安装llvmlite报错:No such file or directory: ‘llvm-config‘: ‘llvm-config‘

    文章目录: 1 问题说明 2 解决问题方式 1 问题说明 1.在安装llvmlite的时候报错:No such file or directory: 'llvm-config': 'llvm-conf ...

  7. brew install php55 报错 clang: error

    2019独角兽企业重金招聘Python工程师标准>>> clang: error: linker command failed with exit code 1 (use -v to ...

  8. sudo brew install mongodb报错

    报错信息如下: Error: Running Homebrew as root is extremely dangerous and no longer supported. As Homebrew ...

  9. Windows 下使用pip install 安装出现报错ERROR: Cannot unpack file解决办法

    使用豆瓣园安装robotframework-ride时,出现Cannot unpack file报错: ERROR: Cannot unpack file C:\Users\ZHANGW~1\AppD ...

最新文章

  1. 4、变量和方法被static和final两个关键字修饰,为什么这么做?
  2. 树状数组求逆序对_初识树状数组
  3. 94授权登录steam怎么用_Steam手机令牌如何绑定,绑定后好处多多
  4. JavaScript的面向对象特性
  5. python如何引用txt_如何使用pip requirements.txt文件安装python模块附加组件
  6. 【渝粤题库】陕西师范大学202411 管理学基础 作业 (专升本、高起本、高起专)
  7. Leetcode--8
  8. [求助]请教一个问题!
  9. 如何实现在Windows上运行Linux程序,附示例代码
  10. Centos 7 设置静态IP地址
  11. VLIW Microprocessor Hardware Design
  12. 如何把操作系统迁移到新硬盘?
  13. 安川伺服总线通讯方式_plc通讯方式有哪三种?plc常见的三种通讯方式
  14. Unity WebGL 打包il2cpp.exe did not run properly!
  15. 将家人从Gmail,Thunderbird,Outlook等迁移到Google Apps:权威指南
  16. Ubuntu问题集2.0
  17. 面试经验|2月最新映客直播一面+二面
  18. 用 Python 写了一个电子考勤系统
  19. MySql中的语句查询
  20. 环信即时通讯 聊天室、发红包

热门文章

  1. BZOJ 3566: [SHOI2014]概率充电器 期望DP + 树形DP
  2. 用求解图内节点是否可达的算法来解决IFDS问题
  3. android如何实现打分功能,Android App中使用RatingBar实现星级打分功能的教程
  4. 纯前端实现下载xlsx.js实现下载
  5. html 《br /》和 《br》的区别
  6. 超详细docker入门级教程
  7. 类似百度输入框自动联想功能遇到的问题:Opera浏览器不支持拼音输入法时的keyup事件
  8. Alibaba Sentinel DegradeRule 降级规则源码
  9. 常州SEO姜东:百度资源平台站点验证图文怎么做?
  10. CVPR论文复现争议后续:华人一作苦战两月给出有态度的分析结果