Upgrade Node.js via NPM and n

Snippet

Upgrade local npm via the command line using n

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.