自制软件npm安装:不能符号链接
所以我犯了一个错误,试图摆脱所有的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 prune。 我试图卸载,然后重新安装使用这些步骤:
$ brew uninstall npm $ brew uninstall node $ npm uninstall npm -g $ sudo rm -rf /usr/local/lib/node_module
错误:“brew链接”步骤没有成功完成
我正在运行优胜美地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
一旦完成,再次运行brew doctor
。
类似的问题可以在这里find:
- https://apple.stackexchange.com/questions/192227/make-files-in-usr-local-writable-for-homebrew
- Brew医生说:“警告:/ usr / local / include不可写。”