

If you’re using the installer to update, go to the Node.js downloads page to get the appropriate version. Update your local workstation’s system using the tools and package managers for the operating system. Sudo apt-get update & sudo apt-get upgrade If you do, see the guide How to Install and Use the Node Version Manager. This guide assumes you are only updating your version of Node.js and aren’t looking to run multiple versions. Install NPM, which installs by default with Node.js. If you don’t have it installed, see the How to Install Node.js guide. This guide assumes you are already running Node.js on your Linode or local workstation and are updating the version.

It is regularly updated for security and improvements, and should be kept updated on your systems. Node.js uses the V8 JavaScript engine and is very popular. Next you'll need to open your is a cross-platform runtime environment for server-side JavaScript applications. Navigate to a suitable place on your machine and create a new folder named discord-bot (or whatever you want). However, before you install anything, you should set up a new project folder. npm comes with every Node installation, so you don't have to worry about installing that. To use discord.js, you'll need to install it via npm (Node's package manager). On Linux, you can consult this page open in new window to determine how you should install Node. Use a package manager like Homebrew open in new window with the command brew install node.Download the latest version from the Node.js website open in new window, open the package installer, and follow the instructions.Download the latest version from the Node.js website open in new window, open the downloaded file, and follow the steps from the installer. On Windows, it's as simple as installing any other program. If it outputs v16.9.0 or higher, then you're good to go! Otherwise, continue reading. To check if you already have Node installed on your machine (e.g., if you're using a VPS), run node -v in your terminal.
