I want to update my node.js version with brew on mac but I have this error:
Error: This command updates brew itself, and does not take formula names.
Use 'brew upgrade <formula>'.
This error message is telling you that the command brew update
is used to update brew itself, and that if you want to update node, you need to run brew upgrade node
. Note the difference: 'update' vs. 'upgrade'.
You may also want to consider using Node Version Manager (NVM), which makes installing new node versions very simple, and allows switching back and forth between them with a single command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With