Peak Modifications Docs > Getting Started > Server Setup > Installing NodeJS & NPM

Installing NodeJS & NPM

clewis329

Step 1

Open a terminal window and update the package manager's cache by running the following command:

sudo apt update

Step 2

Install Node, which is required for Discord.js

sudo apt-get install nodejs

Step 3

Install the Node Package Manager, which is used to install the Discord.js library.

sudo apt-get install npm

Step 4

Install Node Version Manager (nvm), which is used to update Node.js.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

Step 5

To verify the version of Node.js that you have installed, you can run the following command in your terminal:

node -v

This command will output the version number of Node.js that you have installed on your system. It is a good idea to check the version number after installing Node.js to make sure that the installation was successful.

If you want to check the version of npm (the Node.js package manager), you can run the following command:

npm -v

This will output the version number of npm that is installed on your system. It is a good practice to check the version of npm after installing it to make sure that it is working properly.

Step 6

We are going to update node.js to the recommend version to use for Discord Bots by Peak Modifications as this is what it was built on.

nvm install 16.13.2

Great Job! You have installed NodeJS, NPM, and NVM. Now you can continue to the Documentation of the product that you have purchased on starting the Bot


Was this article helpful?

69 out of 150 found this helpful