Installation

Installing Node.js

Windows

Head over to the Node.js websiteopen in new window and download the latest version.

macOS

If you're developing on macOS, you have a few options. You can go to the Node.js websiteopen in new window, download the latest version, double click the package installer, and follow the instructions. Or you can use a package manager like Homebrewopen in new window with the command brew install node.

Installing on Linux

If you're developing on Linux, you may consult this pageopen in new window to determine how you should install Node. On that note, there's a possibility that you may already have Node (e.g., if you're using a VPS). You can check by running the node -v command. If it outputs something like v14.0 or higher, then you're good to go! Otherwise, take a look at the page linked above for instructions on installing Node on your OS.

Installing required packages

Without further ado, let us get started with our project.

mkdir eris-bot
cd eris-bot

Initialize the project:

npm init # fill out the questions

Feeling a bit lazy? Run npm init -y to have it fill everything out for you!
Install the packages needed:

npm i eris --no-optional # add the --no-optional flag to stop it from installing optional dependencies for voice support (that would need node-gyp)
npm i dotenv

If you want to install the dev version of Eris instead of the stable version, run the following:

npm install --no-optional abalabahaha/eris#dev

Optional dependencies

There are a few optional dependencies that you can choose not to install.


Congrats! You have now installed all the required packages for your project.

Copyright © Dusty 2021 - 2021