---
description: Let's get this garbage library installed!
---

# Installation

Detritus doesn't have a whole lot of complex dependencies, in fact, it's one of the smallest set of dependencies I've seen in what I can only call a "large library". 64 total `node_modules` dependencies is really pretty small.&#x20;

### Before you Start

Detritus is a NodeJS library, which means you must have node installed on your machine. You can [download it from nodejs.org](https://nodejs.org/) , or install it using whatever package manager you might have. _Make sure_ however, that you're using a modern version of node - that means _**Node 14.x or higher**_.

As a developer I can tell you that an important thing is that you make sure you've got a clean working area. That means, create a brand new folder on your hard drive where you'll be creating your bot project. Personally I highly recommend having a folder dedicated to your projects, something like C:\devel or D:\projects or something like that. There's technical reasons for this too that you don't quite need to worry about, but that's how I do it. Create a folder for your bot in that parent folder, so we have something like C:\devel\trashbot\ as a folder.&#x20;

Once you've done that, it's also ideal to initialize the project with `npm init --y` which will create a package.json file. If you don't already know this, explaining the package.json is beyond the scope of this guide but just know that it should be there in your project folder!

### Installing Detritus

With your brand new empty folder and your package.json ready to go, you only have one command to run to install the library.

{% hint style="info" %}
New to programming and on Windows? You can open a terminal in your project by doing SHIFT+RIGHT-CLICK in an empty folder and then click "Open Powershell window here" to get the window you need!
{% endhint %}

```javascript
npm i detritus-client@latest

OR

yarn add detritus-client@latest
```

Great! After a few moments, the library will be installed!

![](https://2346990799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mb7rJNHKKthc31RqyPJ%2F-Mb7rO8ML5IdjJXcoQYl%2F-MbCnGtlZDa0wRIrydQ6%2Fe2N1NSNmMG.gif?alt=media\&token=4f487796-f42e-4e92-a119-40ffe4dbefb9)
