M HYPE SPLASH
// general

Simplest way to upgrade NodeJs and NPM

By Sarah Scott

In nowadays (~2020) not make sense to copy/paste big scripts from internet to install the official stable version of a package...

There are a simpler (and reliable) way (comparing with this ugly setpup) to do it for node and npm?


Notes: I am using fresh Ubuntu 18 LTS and need standard LTS packages, but apt install build very very old versions:

  • node --version = v8.10.0, but "all people" need v12+ as the official recommendation.

  • npm -v = 3.5.2, but "all people" need v6+ as the official recommendation.

  • I try sudo snap refresh node --channel=13 but "snap 'node' is not installed"

  • This answer seems the only good solution

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy