Template - API
WelcomePrerequisitesNodeJS
  • Welcome!
    • About me
  • Prerequisites
    • Installation and Database Setup
    • Installing Node.js on the Server
  • NodeJS
    • 🆓Getting Started with the Free Template
    • 🎗️Premium Template - REST API
      • Structure
      • Middlewares and Guards
      • Core Modules
        • Prisma with NestJS
        • Swagger with NestJS
      • Dynamic Module
        • Create or Import Module
  • Modules
    • 🎗️Websockets
    • 🎗️Mailer
    • 🎗️Upload
Powered by GitBook
On this page
  1. Prerequisites

Installing Node.js on the Server

To run the API, you'll need to have Node.js installed on your Linux server. Here's how to install the latest stable version of Node.js


Install Node.js (using NodeSource)

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs

Verify the Installation

To ensure Node.js and npm (Node Package Manager) are correctly installed, run

node -v
npm -v

You should see the versions of Node.js and npm printed in the terminal, confirming that the installation was successful.

PreviousInstallation and Database SetupNextNodeJS

Last updated 9 months ago