首页指南参考教程

创建项目

了解如何创建新的 Expo 项目。


系统要求:

¥System requirements:

  • Node.js (LTS)

  • 支持 macOS、Windows(Powershell 和 WSL 2)和 Linux。

    ¥macOS, Windows (Powershell and WSL 2), and Linux are supported.

我们建议从 create-expo-app 创建的默认项目开始。默认项目包含示例代码以帮助你入门。

¥We recommend starting with the default project created by create-expo-app. The default project includes example code to help you get started.

要创建新项目,请运行以下命令:

¥To create a new project, run the following command:

Terminal
npx create-expo-app@latest

你可以通过添加 --template 标志来选择不同的模板。

¥You can choose a different template by adding the --template flag.

下一步

¥Next step

你有一个项目。现在是时候设置你的开发环境,以便你可以开始开发了。

¥You have a project. Now it's time to set up your development environment so that you can start developing.