Update my node js version with homebrew
12,428
Solution 1
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.
Solution 2
This should be enough to upgrade Node in Mac using brew
:
brew upgrade node
The above command will automatically update Homebrew as well.
==> Auto-updated Homebrew!
Author by
Dorian Richard
Updated on June 11, 2022Comments
-
Dorian Richard almost 2 years
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>'.