Discloud Docs
English
English
  • 👋Welcome
  • Suport
    • ☁️How to Host
      • 🤖Bots
        • 🔌Bot
        • 🧩VSCode Extension
        • ⌨️CLI
      • 🌎Website and APIs
        • 🔌Bot
        • 🧩VSCode Extension
        • ⌨️CLI
    • ⌨️Languages
      • 🟨JavaScript
        • 📄Create the package.json
      • 🐍Python
        • 📄Create the requirements.txt
      • ☕Java
      • 💎Ruby
        • 📄Create the Gemfile
      • 🐿️Go
      • 🐘Php
      • 🦀Rust
        • 📄Create the Cargo.toml
    • ⛓️Integrations
      • 🌐Your Own Domain
      • 🐙GitHub and GitLab
      • 🎧Lavalink
      • 💾Database
        • MongoDB Atlas (mLab)
    • ❓Frequently Asked Questions (FAQ)
      • How to compress my files?
      • Discloud ModMail (Ticket)
      • How do I get my bot's ID?
      • What is the main file?
      • Configuring Puppeteer
      • How to report an offender?
      • Why can't I access my website?
      • Very Heavy BOT
    • ⚒️Commands
      • How to get API token
      • How to integrate Github
    • 🤲Donations
  • configuration
    • ⚙️discloud.config
      • 📦APT (Install Packages)
      • 🏗️VERSION (Switch between Versions)
  • 🖥️local environment
    • ⚙️Install
      • 🟨JavaScript (NodeJS)
      • 🐍Python
      • 💎Ruby
      • 🦀Rust
  • API
    • 📡Using the API
    • 🔗Routes
  • About
    • 🎨Discloud Brand
      • Name origin
      • Visual Identity
  • 🔗Links
    • 🌎Website
    • 📊DisCloud Status
  • 📜Legal
    • 📄Terms of Service (TOS)
Powered by GitBook
On this page
Edit on GitHub
  1. local environment
  2. Install

JavaScript (NodeJS)

PreviousInstallNextPython

Last updated 2 years ago

Install Nodejs and npm on your computer

npm - Official NodeJS Package Manager

Select your Operating System

Installing Nodejs and Npm

Check the NodeJS Installation

Open cmd or PowerShell and run:

node -v

Check the npm Installation

Open cmd or PowerShell and run:

npm -v

If it returns the version of both then it is installed correctly!

Installing Nodejs and Npm

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

The nodejs package already installs npm

sudo dnf install nodejs npm -y

The repositories for Arch Linux and its derivatives have the latest packages, Nodejs LTS and Node Latest is available.

sudo pacman -S nodejs-lts-hydrogen npm

Check the NodeJS Installation

Run the following command in Terminal.

node -v

Check the npm installation

Run the following command in Terminal.

npm -v

If it returns the version of both then it is installed correctly!

Ubuntu

If you use Ubuntu or some distro based on it know that not always the nodejs LTS version of the Ubuntu is the latest one, so I recommend following the instructions below:

For other versions see

Repository Package Information: ,

Fedora

The nodejs LTS version present in the is usually quite recent, you can install it by running in Terminal:

Repository Package Information: ,

Arch Linux

Run the following command to install v18.x. (more details see )

Repository Package Information: ,

🖥️
⚙️
🟨
repositories
here
nodejs
npm
repositories
nodejs
npm
Arch Wiki
nodejs
npm
Download the Nodejs Here