创建新项目
先决条件
🌐 Prerequisites
要使用 Remotion,你至少需要 Node 16 或 Bun 1.0.3。
使用 Claude Code 提示视频
🌐 Prompting a video with Claude Code
If you plan on prompting videos with Claude Code, see: Prompting videos with Claude Code.
为一个新项目搭建脚手架
🌐 Scaffolding a new project
🐧 Linux 发行版至少需要 Libc 2.35 版本。
它们还需要 安装一些附加的软件包。
Alpine Linux 和 NixOS 不受支持。
- npm
- bun
- pnpm
- yarn
Use npm as the package managernpx create-video@latest
Use pnpm as the package managerpnpm create video
Use Yarn as the package manageryarn create video
Use Bun as the package manager and runtimebun create video
Bun 作为运行时大部分被支持。在这里阅读更多。
选择最适合你的模板。
对于你的第一个项目,我们推荐使用 Hello World 模板。
🌐 Choose the template that is most suitable for you.
For your first project, we recommend the Hello World template.
- Regular templates
- Next.js + React Router 7
在项目搭建完成后,我们建议在文本编辑器中打开项目并启动 Remotion Studio:
🌐 After the project has been scaffolded, we recommend to open the project in your text editor and starting the Remotion Studio:
npm run dev在项目搭建完成后,我们建议在文本编辑器中打开项目并启动应用:
🌐 After the project has been scaffolded, we recommend to open the project in your text editor and starting the app:
npm run dev要启动 Remotion Studio:
🌐 To start the Remotion Studio:
npm run remotion在现有项目中的安装
🌐 Installation in existing projects
想在现有项目中安装 Remotion 吗?请改到这里:在现有项目中安装
🌐 Want to install Remotion in an existing project? Go here instead: Installation in existing projects