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
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 (opens new window), download the latest version, open up the downloaded file, and follow the steps from the installer.
Installing on macOS
If you're developing on macOS, you have a few options. You can go to the Node.js website, download the latest version, double click the package installer, and follow the instructions. Or you can use a package manager like Homebrew with the command brew install node
Installing on Linux
If you're developing on Linux, you may consult this page 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
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:
Open your bot project folder.
Hold down the
Shift
key and right-click inside the folder.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 likev12.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!
Last updated