所以我做错了,试图摆脱所有的sudo依赖.我从网站下载了一个npm作为一个包,并进行了手动/全局安装.但是似乎我总是必须运行sudo …所以我试图卸载并运行自制程序.
现在我不能得到节点或npm甚至运行…我想我必须链接到brew链接他们,但我得到这个错误:
Could not symlink share/doc/node/gdbinit Target /usr/local/share/doc/node/gdbinit already exists. You may want to remove it: rm '/usr/local/share/doc/node/gdbinit'
我已经尝试删除:
我得到了许可被拒绝.
我试过运行冲泡修剪.
我已尝试卸载,然后重新安装使用以下步骤:
$brew uninstall npm $brew uninstall node $npm uninstall npm -g $sudo rm -rf /usr/local/lib/node_module
Error: The ‘brew link’ step did not complete successfully
我在运行优胜美地10.10.5.我已经安装了git版本2.6.0.我的自制软件更新.一个酿造医生给我这个警告:
Warning: You have unlinked kegs in your Cellar Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run `brew link` on these: node
不知道从哪里走.我试图失去对CodeKit的依赖,并且获取并运行.
解决方法
看来,/usr/local中的几个文件和目录现在由root拥有,因为您使用sudo运行了几个步骤.要摆脱这些,请收回/usr/local下的所有文件和目录的所有权:
sudo chown -R $USER /usr/local
一旦完成,再次运行酿造医生.
类似的问题可以在这里找到:
> https://apple.stackexchange.com/questions/192227/make-files-in-usr-local-writable-for-homebrew
> Brew doctor says: “Warning: /usr/local/include isn’t writable.”
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。