Answers for "brew node update"

2

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
Posted by: Guest on December-17-2020
0

update to node 12 mac

// Fix node not found first	
sudo chown -R `whoami`:admin /usr/local/include/node
    sudo chown -R `whoami`:admin /usr/local/bin
    sudo chown -R `whoami`:admin /usr/local/share
    sudo chown -R `whoami`:admin /usr/local/lib/dtrace 

 brew link --overwrite node
 
// Then: 
sudo npm cache clean -f 
sudo npm install -g n 
sudo n stable/lts
Posted by: Guest on December-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language