Answers for "how to update node version to 12.2 on mac"

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
0

update node two versions mac

// After installation/upgrading node via brew I ran into this issue exactly: the node command worked but not the npm command.
// I used these commands to fix it.
// From: https://stackoverflow.com/questions/5056115/how-to-install-latest-version-of-node-using-brew

brew uninstall node
brew update
brew upgrade
brew cleanup
brew install node
sudo chown -R $(whoami) /usr/local
brew link --overwrite node
brew postinstall node
Posted by: Guest on October-13-2020

Code answers related to "how to update node version to 12.2 on mac"

Code answers related to "Javascript"

Browse Popular Code Answers by Language