Installing Node.js and npm on Ubuntu 26.04

📰 Dev.to · Sanskriti Harmukh

Learn to install the latest Node.js and npm on Ubuntu 26.04, bypassing the outdated default version

beginner Published 8 May 2026
Action Steps
  1. Update the package index using sudo apt update
  2. Install curl using sudo apt install curl
  3. Use curl to download and install the latest Node.js version from the official NodeSource repository
  4. Verify the installation by running node -v and npm -v
  5. Configure the package manager to use the newly installed Node.js version
Who Needs to Know This

Developers and DevOps engineers can benefit from this tutorial to ensure they have the latest Node.js version for their projects

Key Insight

💡 The default Ubuntu APT repository has an outdated Node.js version, so use the NodeSource repository for the latest version

Share This
🚀 Install the latest Node.js on Ubuntu 26.04 with these easy steps! 💻
Read full article → ← Back to Reads