brew & apply2files bug
2024-10-05 00:30:49
brew & apply2files bug
Error: Permission denied @ apply2files - /usr/local/lib/node_modules/npm/node_modules/.bin/JSONStream
$ brew install watchman
# Error: Permission denied @ apply2files - /usr/local/lib/node_modules/npm/node_modules/.bin/JSONStream
$ brew cleanup
$ brew install watchman
# Error: watchman 4.9.0_2 is already installed
To upgrade to 4.9.0_4, run `brew upgrade watchman`.
$ brew upgrade watchman
solution
# OK
$ sudo chown -R "$(whoami)":admin /usr/local/lib
# OR
$ sudo chown -R $(whoami) $(brew --prefix)/*
# ?
$ mkdir -p /Applications/Docker.app/Contents/Resources/cli-plugins
$ brew cleanup
# not work
$ sudo yarn cache clean
$ brew cleanup
# OR
$ sudo rm -r /usr/local/share/Library/Caches/Yarn/v1/
# rm: /usr/local/share/Library/Caches/Yarn/v1/: No such file or directory
refs
https://github.com/Homebrew/homebrew-core/issues/45009
https://gist.github.com/irazasyed/7732946#gistcomment-2235469
$ sudo install -d -o $(whoami) -g admin /usr/local/Frameworks
https://stackoverflow.com/questions/54682876/brew-cleanup-error-permission-denied-unlink-internal
xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
最新文章
- “不要抄代码!自己的代码也不要抄!”
- Observer pattern 观察者模式
- flash2x、flax
- CentOS vsftp安装与配置
- nginx作为负载均衡服务器——测试
- MVC MVVM Knockout 常遇问题总结
- mmap 的理解
- 算法的时间复杂度(大O表示法)
- js源码保护
- Java中泛型 问号的作用
- core-site.xml配置项:hadoop.tmp.dir
- SQL Server数据库---》基础
- HDU 2076 夹角有多大(题目已修改,注意读题)
- webAppbuilder微件使用教程2 常用微件介绍
- C#字典转换成where条件
- 第一册:lesson 117.
- Apex简介
- 正则匹配获取HTML图片地址,正则匹配获取HTML内容
- Flutter - JSON to Dart,一个json转dart实体的网站
- USACO 5.5 Hidden Password
热门文章
- gRPC Motivation and Design Principles | gRPC https://grpc.io/blog/principles/
- 每天响应数亿次请求,腾讯云如何提供高可用API服务?
- C++ Primer Plus读书笔记(七)函数
- 你应该了解的25个JS技巧
- 【Soul网关探秘】http数据同步-Web端处理变更通知
- Java网络基础
- GeoJson的生成与解析,JSON解析,Java读写geojson,geotools读取shp文件,Geotools中Geometry对象与GeoJson的相互转换
- Golang之垃圾回收
- 设计模式c++(2)——策略模式
- HarmonyOS应用开发-Component体系介绍(一)