How to install node brew

In this article let’s discuss about How to install node brew. Let’s go through the following methods without any delay.

Method 1:

brew install node

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

brew update
#As a safe measure you should run brew doctor to make sure your system is ready to brew. Run the command below and follow any recommendations from brew doctor.

brew doctor
#Next, add Homebrew’s location to your $PATH in your .bash_profile or .zshrc file.

echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.profile
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.profile
#Next, install Node (npm will be installed with Node):

brew install node
node -v

Hope the above solution works.

Realted Posts : How to create react native app