brew install npm
brew install node
install node brew
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
install nodejs via homebrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us