Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

update nodejs to latest version on mac

// use brew to upgrade node to the latest version
brew update
brew upgrade node
node --version // outputs: v12.x.x

// also you can do it with npn
sudo npm cache clean -f // clean first
sudo npm install -g n // install globally
sudo n stable/lts 
Source by bytearcher.com #
 
PREVIOUS NEXT
Tagged: #update #nodejs #latest #version #mac
ADD COMMENT
Topic
Name
2+6 =