brew卸载节点错误高塞拉利昂

时间:2018-07-04 19:19:47

标签: node.js homebrew node-modules

我尝试使用brew卸载节点,但是遇到了以下问题,但似乎没有解决。

运行brew uninstall node时,出现以下错误消息:

Uninstalling /usr/local/Cellar/node/10.5.0_1... (7,893 files, 34.2MB)
Error: Directory not empty @ dir_s_rmdir - /usr/local/Cellar/node/10.5.0_1

任何想法如何解决此问题?我可以删除此文件吗?

感谢您的帮助。

2 个答案:

答案 0 :(得分:6)

我有同样的问题。我在chown文件夹上进行了递归/usr/local/Celler/node,将其设置为MyUser:staff(显然,将MyUser更改为您的用户),这使我能够成功运行brew uninstall node。希望对您有所帮助。

答案 1 :(得分:0)

尝试使用NVM安装节点。这样比较容易,您可以安装多个版本的节点。