Install Node.js LTS Version On Ubuntu

Aug 8, 2017
npm is installed with Node.js

It's recommended to install the current active Node.js LTS.

The following command would install Node.js 6.x.

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -sudo apt-get install -y nodejs

NOTE: Version 6.x LTS ends on April 2019.

Check your Node.js version

node -v# Output: v6.11.2

To install Node.js 8, use the following command.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -sudo apt-get install -y nodejs

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.