Monday, 21 December 2020

Update node.js & npm packages to latest/stable/


Upgrade Node.js and npm:

  1. sudo npm cache clean -f (force) clear you npm cache
  2. sudo npm install -g n install n (this might take a while)
  3. sudo n stable upgrade to the current stable version. Possible tags[latest/stable/<version>]



References:

  1. stackoverflow question
  2. 4 ways to upgrade Node.js on MAC

Update node.js & npm packages to latest/stable/<version>

Upgrade Node.js and npm: sudo npm cache clean -f  (force) clear you npm cache sudo npm install -g n  install  n  (this might take a while) s...