Reputation: 53
I try to uninstall node with brew, but I run into the following issue that I do not seem to get solved.
When I run brew uninstall node
, I get the following error message:
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
Any idea how to solve this issue? Can I just delete this file?
Thank you for any help.
Upvotes: 5
Views: 1994
Reputation: 637
Try to install node using NVM. It is easier and you can install multiple version of node.
Upvotes: 0
Reputation: 322
I had the same problem. I did a recursive chown
on the /usr/local/Celler/node
folder setting it to MyUser:staff
(changing MyUser to your user, obviously) and that allowed me to successfully run brew uninstall node
. Hope it helps.
Upvotes: 7