strapi/docs/3.x.x/en/getting-started/installation.md
Evan Owens 238b3f9b4a
Specify MongoDB >= 2.6
Need to use MongoDB >= 2.6 otherwise get wire version errors on start:
```
UnhandledPromiseRejectionWarning: MongoError: Server at 127.0.0.1:27017 reports wire version 0, but this version of Node.js Driver requires at least 2 (MongoDB2.6).
```
2018-06-01 23:57:06 -04:00

1.5 KiB
Raw Blame History

Installation

Installation is very easy and only takes a few seconds.

Requirements

Please make sure your computer/server meets the following requirements:

  • Node.js >= 9: Node.js is a server platform which runs JavaScript. Installation guide here.
  • MongoDB >= 2.6: MongoDB is a powerful document store. Installation guide here.

Setup

Time to install Strapi!

npm install strapi@alpha -g

Note: if you encounter npm permissions issues, change the permissions to npm default directory.

It takes about 20 seconds with a good Internet connection. You can take a coffee if you have a slow one.

Having troubles during the installation? Check if someone already had the same issue https://github.com/strapi/strapi/issues. If not, you can post one, or ask for help https://strapi.io/support.

Check installation

Once completed, please check that the installation went well, by running:

strapi -v

That should print 3.0.0-alpha.x.

Strapi is installed globally on your computer. Type strapi in your terminal you will have access to every available command lines.


Congrats! Now that Strapi is installed you can create your first API.