Homebrew不能使用
来源:互联网 发布:化工与人工智能 编辑:程序博客网 时间:2024/06/06 01:17
问题出现在RN环境突然失效,npm -v 出现command not found,在国外网站上提示执行node卸载重新安装
brew update$ brew uninstall node$ brew install node$ sudo brew postinstall node
当执行到最后的时候,提示我
Error: Could not symlink share/doc/node/gdbinit
/usr/local/share/doc/node is not writable.
然后我就使用sudo,后来提示
sudo brew link --overwrite node
Password:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
搜索这个问题的时候网上给出的解决方法就是给当前的用户写的权限而非使用sudo
sudo chown -R $(用户名) /usr/local
sudo chown -R user /usr/local
Password:
✗ brew link --overwrite node
Linking /usr/local/Cellar/node/8.3.0... 9 symlinks created
执行完之后,顺利覆盖之前link,命令可以正常执行。在此记录下。
阅读全文
0 0
- Homebrew不能使用
- Homebrew/Homebrew Cask使用
- homebrew 无法安装提示不能在根目录下使用
- Homebrew使用
- mac系统升级到10.12后homebrew不能正常使用的问题
- Homebrew安装与使用
- Homebrew安装与使用
- Homebrew 安装与使用
- Homebrew 的使用
- Mac Homebrew 使用
- Homebrew的使用
- Homebrew安装使用
- HomeBrew使用简介
- 使用 Homebrew 安装 Git
- Homebrew简介及使用
- Homebrew 安装使用简介
- Mac homebrew使用
- Homebrew安装与使用
- js做一个6位数字图片的循环的系统时间
- 笨办法学 Python · 续 第四部分:进阶项目
- hdoj 1093
- Python匿名函数
- ViewPager+Fragment(二)装修房
- Homebrew不能使用
- 【poj2524】Ubiquitous Religions 【Alberta Collegiate Programming Contest 2003.10.18】
- zstack 串口解读,几家之言汇总。(2)
- .建文件夹
- 数据存储Cookie
- E
- 原生JS获取页面全部的checkbox的方法
- python
- 异步Get解析网络(图片,文字,ListView)