# Installing Node.js and EasyPHP

## Installing Node.js

To use EasyPHP, you'll need to install Node.js. You can do so by going to [the Node.js website](https://nodejs.org/)

### Installing on Windows

I f you're developing on Windows, it's as simple as installing any other program. Go to [the Node.js website](https://nodejs.org/) [(opens new window)](https://nodejs.org/), download the latest version, open up the downloaded file, and follow the steps from the installer.

### Installing on macOS

&#x20;If you're developing on macOS, you have a few options. You can go to [the Node.js website](https://nodejs.org/), download the latest version, double click the package installer, and follow the instructions. Or you can use a package manager like [Homebrew](https://brew.sh/) with the command `brew install node`

### &#x20;Installing on Linux

&#x20;If you're developing on Linux, you may consult [this page](https://nodejs.org/en/download/package-manager/) 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 `v12.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.

## Getting Started

For install and use EasyPHP, you need to install via npm (Node.js package manager). npm comes with any Node.js installation, so don't worry about installing it. But before installing anything, you need to set up a new project folder.

### Opening command prompt

&#x20;If you're on Linux, you can quickly open up the terminal with `Ctrl + Alt + T`.

If you're on Windows and aren't familiar with opening up the command prompt, do the following:

1. Open your bot project folder.
2. Hold down the `Shift` key and right-click inside the folder.
3. Choose the "Open command window here" option.

It should then open up a window with a black background. It's a bit unattractive, but we'll talk about using better, more powerful tools in a different part of the guide.

### Using the command prompt

With the command prompt open, start `node -v` to make sure Node.js is installed correctly, if you see something like`v12.0` (or a larger number), Great! If not, go back further and try again.

The next command will be `npm init -y`. Check that after this command a file called `packages.json` has appeared in your project folder.

After that, we are ready to install EasyPHP!

## Installing EasyPHP

Now that you have installed Node.js and created a new project correctly, still at the command prompt, open `npm install easyphp` to install.

And that's it! You are ready to use EasyPHP!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gabb.gitbook.io/easyphp/installations-and-preparations/f1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
