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/48910876/error-eacces-permission-denied-access-usr-local-lib-node-modules-react

https://stackoverflow.com/questions/54682876/brew-cleanup-error-permission-denied-unlink-internal


xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. “不要抄代码!自己的代码也不要抄!”
  2. Observer pattern 观察者模式
  3. flash2x、flax
  4. CentOS vsftp安装与配置
  5. nginx作为负载均衡服务器——测试
  6. MVC MVVM Knockout 常遇问题总结
  7. mmap 的理解
  8. 算法的时间复杂度(大O表示法)
  9. js源码保护
  10. Java中泛型 问号的作用
  11. core-site.xml配置项:hadoop.tmp.dir
  12. SQL Server数据库---》基础
  13. HDU 2076 夹角有多大(题目已修改,注意读题)
  14. webAppbuilder微件使用教程2 常用微件介绍
  15. C#字典转换成where条件
  16. 第一册:lesson 117.
  17. Apex简介
  18. 正则匹配获取HTML图片地址,正则匹配获取HTML内容
  19. Flutter - JSON to Dart,一个json转dart实体的网站
  20. USACO 5.5 Hidden Password

热门文章

  1. gRPC Motivation and Design Principles | gRPC https://grpc.io/blog/principles/
  2. 每天响应数亿次请求,腾讯云如何提供高可用API服务?
  3. C++ Primer Plus读书笔记(七)函数
  4. 你应该了解的25个JS技巧
  5. 【Soul网关探秘】http数据同步-Web端处理变更通知
  6. Java网络基础
  7. GeoJson的生成与解析,JSON解析,Java读写geojson,geotools读取shp文件,Geotools中Geometry对象与GeoJson的相互转换
  8. Golang之垃圾回收
  9. 设计模式c++(2)——策略模式
  10. HarmonyOS应用开发-Component体系介绍(一)