NodeJs Installation - Ubuntu

Search for a command to run...

No comments yet. Be the first to comment.
In this tutorial series, we will understand the Fundamentals of NodeJs and learn to use Javascript on the server side.
The most common example Hello World of Node.js is a web server: Before creating an actual "Hello, World!" application using Node.js, let us see the components of a Node.js application. A Node.js application consists of the following three important c...
You've done it. I've done it. We've all done it.

Your AI Agent Has Amnesia. ByteRover Fixes It — Without Vectors Let's see how to built a customer support agent that remembers everything — using plain markdown files, BM25 search, zero embeddings, a

My GenAI cohort kicked off today, and what a first day! Right away we were reminded that AI isn’t magic — at its core, models like Generative Pretrained Transformers (GPT) are doing one simple thing:

Hello Folks👋, I Recently got Graduated🎓 in 2020, yep in the Pandemic. We all hit very hard by this Corona Pandemic and we all got stuck at home for very long. We all realize the Importance of Socializing, Fitness (Physically as well Mentally), Diet...

So after learning the basic commands of git in our previous section, let's see Git in action. If you already have a project to track your files then you can skip this section and if not then continue. Initializing a Repository from Non-existing Dire...

Node.js is available on Ubuntu. So all you need to do is to open a terminal and use the following command:
sudo apt install nodejs
To install npm, use the following command:
sudo apt install npm
I recommend installing npm as well because you're going to need it anyway. Both Node.js and npm are quite small.
To be able to compile and install native add-ons from npm you need to install the development tools. The following command will install all the necessary packages including the GCC compilers :
sudo apt install build-essential
Open a new terminal (you may need restart) and type the below command to verify the installation:
node -v
The console should respond with a version string. Repeat the process for npm:
npm -v
If both commands work, your installation was a success, and you can start using Node.js!
If for some reasons you want to uninstall Node.js and npm packages, you can use the following command:
sudo apt remove nodejs npm
Congratulations!! We had successfully installed the Nodejs On Ubuntu : D