Skip to content

Learn Qwik from A to Z (2025)

Install Node.js and NPM on Ubuntu (1/∞)

This guide will help you install Node.js and npm safely on Ubuntu using official sources.

Install Node.js on Ubuntu
Install Node.js on Ubuntu

🚀 Why Are We Starting from Scratch?

In this "Learn Qwik from A to Z (2025)" series, we are rebuilding everything from zero. The goal is to guide absolute beginners — and those who want a clean and solid foundation — through each step required to set up a complete Qwik development environment.

Before diving into Qwik itself, it's essential to prepare your system properly. This starts with installing Node.js and npm, which are necessary to run Qwik and manage its dependencies smoothly and safely.

We won’t go into every advanced detail, but we’ll make sure you install everything the right way, so you can focus on learning and building real Qwik applications with confidence.

🎒 Prerequisites for Building a Qwik App

Before creating your first project, here's what you'll need:

📌 Open your Terminal

Open Terminal Ubuntu
Launch your Terminal from the sidebar or press Ctrl + Alt + T. If it's not pinned, refer to our previous article.

🔄 Update your package list

To make sure Ubuntu uses the most recent sources, update your package index:

Terminal
sudo apt update

🔐 Enter your password

Because you're using sudo, Ubuntu asks for your admin password. Type it and press Enter.

Sudo password prompt

📦 Install curl (if not installed)

curl is required to fetch external scripts like the Node.js installer. Most systems have it by default:

Terminal
Install curl on Ubuntu

🌐 Add the official Node.js setup script

This command comes from NodeSource’s GitHub page. It adds the latest LTS version (v18) to your system:

Terminal
NodeSource script

📥 Install Node.js (and npm)

After adding the repo, you can install both Node.js and npm in one go:

Terminal
Install Node.js

✅ Check Node.js version

To make sure Node.js is installed correctly:

Terminal
Check Node.js version

✅ Check npm version

And finally, make sure npm is installed too:

Terminal
Check npm version

🎥 Watch the Video

If you’re not sure how to open the Terminal on Ubuntu, don’t worry, this short video will show you exactly what to do step by step.

🎉 Well done!

Congratulations — you’ve successfully installed Node.js and npm on your Ubuntu system. This means your computer is now fully ready to start creating Qwik projects and running modern JavaScript tools without any issues.

This was a crucial step, and by completing it, you've laid a solid foundation for all your future Qwik development. Keep up the great work, and let's move forward to the next exciting step!

Have questions, issues, or feedback?

Join our official Learn Qwik Discord server to get help and connect with the community.

🚀 Next step

You're ready to install Visual Studio Code or Cursor, and start building your first Qwik app.

Next step 👉 Install VS Code on Ubuntu.