Notifications 0

CodeGoundAI

ReadsNew

Speed TestNew

Code Grounds

RustGo LangNode JSPython 3C++JavaWeb(HTML, CSS, JS)

Data Grounds

RedisMongoDBPostgres

Tools New

Epoch ConverterCanvas Drawing boardBase64 EncodeBase64 DecodeJSON Web TokensJSON Diff

Popular

ReadsGrounds

Features

Realtime SharingShared OwnershipFast CompilationCloud Storage

Contact us

[email protected]

More to Explore

Sitemap

We @ CodeGroundAI

About UsPrivacy Policy

How to install NodeJs on Ubuntu 18.04

Steve Joshua - March 6, 2025


Basic Introduction


Nodejs is a JavaScript runtime build over Chrome's V8 JavaScript engine. Nodejs is generally used a backend tool to cater to client apis.

Because of asynchronous nature of Javascript, it serves best to use Nodejs for I/O intensive operations


In this tutorial, we will show how to install Nodejs in a system running Ubuntu 18.04 OS.


Installing the Stable Version for Ubuntu


Ubuntu 18.04 contains a version of Node.js in its default repositories that can be used to provide a consistent experience across multiple systems. This won't be the latest version, but it should be stable and sufficient enough for quick experimentation with the language.


To get this version, you can use the apt package manager. Refresh your local package index by typing:

sudo apt update 



Install NodeJs from repositories

sudo apt install nodejs



That's it. We have NodeJs installed and ready to be used. Though in most cases we do need npm to manage our nodejs packages and their versions. So to install that, we can run

sudo apt install npm



Now, to check if we have properly installed NodeJs, we can run

nodejs -v





CodeGroundAI

CodeGroundAI is your all-in-one platform for seamless online coding. Whether you're a beginner or a pro, our IDE supports multiple programming languages, offers real-time collaboration, and provides a comprehensive toolkit for debugging, testing, and code execution.

Explore tools like the EPOCH Convertor, JSON Diff Checker, JWT Decoder, and Base64 Encoder/Decoder. With a real-time code-sharing platform and advanced comparison utilities, CodeGroundAI ensures you have everything you need for efficient development and accurate data handling.

Languages
  •  NodeJs
  •  Python
  •  Rust
  •  C++
  •  Java
  •  Golang
  •  Web
  •  MongoDB
  •  Redis
  •  Postgres
Tools
  •  Epoch Converter
  •  JSON Differentiator
  •  JWT Debugger
  •  Base64 Decode
  •  Base64 Encode
  •  Canvas
  •  Speed-Test
  •  Reads
Contact Us

Have questions or need support? Reach out to us for a smooth coding experience.

[email protected]

Connect with us on your favourite platform.

CodeGroundAI © 2024. All rights reserved.