Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update my node js version with homebrew

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>'.
like image 510
Dorian Richard Avatar asked Jan 07 '23 00:01

Dorian Richard


1 Answers

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.

like image 108
lanceball Avatar answered Jan 08 '23 15:01

lanceball