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.

Last updated