从 CLI 安装
¥Installing from CLI
Strapi CLI(命令行接口)安装脚本是让 Strapi 在本地运行的最快方法。以下指南是 Strapi 最推荐的安装选项。
¥Strapi CLI (Command Line Interface) installation scripts are the fastest way to get Strapi running locally. The following guide is the installation option most recommended by Strapi.
准备安装
¥Preparing the installation
在安装 Strapi 之前,你的计算机上必须安装以下要求:
¥Before installing Strapi, the following requirements must be installed on your computer:
-
Node.js:仅支持 活动 LTS 或维护 LTS 版本(目前支持
v20
和v22
)。不支持 Node 的奇数版本(称为 Node.js 的 "current" 版本)(例如 v21、v23)。¥Node.js: Only Active LTS or Maintenance LTS versions are supported (currently
v20
andv22
). Odd-number releases of Node, known as "current" versions of Node.js, are not supported (e.g. v21, v23). -
你首选的 Node.js 包管理器:
¥Your preferred Node.js package manager:
-
Python(如果使用 SQLite 数据库)
¥Python (if using a SQLite database)
A supported database is also required for any Strapi project:
数据库 | 受到推崇的 | 最低限度 |
---|---|---|
MySQL | 8.4 | 8.0 |
玛丽亚数据库 | 11.4 | 10.3 |
PostgreSQL | 17.0 | 14.0 |
SQLite | 3 | 3 |
Strapi 不支持 MongoDB(或任何 NoSQL 数据库),也不支持任何 "云原生" 数据库(例如 Amazon Aurora、Google Cloud SQL 等)。
¥Strapi does not support MongoDB (or any NoSQL databases), nor does it support any "Cloud Native" databases (e.g., Amazon Aurora, Google Cloud SQL, etc.).