创建一个新项目
先决条件
要使用 Remotion,您至少需要 Node 16 或 Bun 1.0.3。
创建一个新项目
note
- npm
- bun
- pnpm
- yarn
使用 npm 作为包管理器bash
npx create-video@latest
使用 npm 作为包管理器bash
npx create-video@latest
使用 pnpm 作为包管理器bash
pnpm create video
使用 pnpm 作为包管理器bash
pnpm create video
使用 Yarn 作为包管理器bash
yarn create video
使用 Yarn 作为包管理器bash
yarn create video
使用 Bun 作为包管理器和运行时bash
bun create video
使用 Bun 作为包管理器和运行时bash
bun create video
note
Bun 作为运行时大部分受支持。在此处阅读更多。
选择最适合您的模板。
对于您的第一个项目,我们推荐使用 Hello World 模板。
- 常规模板
- Next.js + Remix 模板
项目脚手架完成后,我们建议在文本编辑器中打开项目并启动 Remotion Studio:
bash
npm start
bash
npm start
项目脚手架完成后,我们建议在文本编辑器中打开项目并启动应用程序:
bash
npm run dev
bash
npm run dev
要启动 Remotion Studio:
bash
npm run remotion
bash
npm run remotion
在现有项目中安装
想要在现有项目中安装 Remotion 吗?请转到这里:在现有项目中安装