Errors when executing brew install node on OSX
If you encounter errors installing node on OSX from
the command line, it may be easiest to uninstall and then
reinstall using the automated installer.
Assuming you initially installed Node from the command line,
uninstall node using the following command:
sudo brew uninstall node -v
Then use the automated installer which can be found on the
official node website:
https://nodejs.org/en/download/
See also