Skip to content

🎥 Make videos programmatically with React

create-video: Continue setup after install failure

JonnyBurger7129aefb4c22
diff --git a/packages/create-video/src/init.ts b/packages/create-video/src/init.ts
index 4d34d4f94c..c7c340d877 100644
--- a/packages/create-video/src/init.ts
+++ b/packages/create-video/src/init.ts
@@ -216,10 +216,16 @@ export const init = async () => {
}
Log.info('Installing dependencies...');
- await execa.command(getInstallCommand(pkgManager), {
- cwd: projectRoot,
- stdio: 'inherit',
- });
+ let installedDependencies = true;
+ try {
+ await execa.command(getInstallCommand(pkgManager), {
+ cwd: projectRoot,
+ stdio: 'inherit',
+ });
+ } catch (e) {
+ installedDependencies = false;
+ Log.error('Error installing dependencies:', e);
+ }
if (!isInsideGitRepo) {
await getGitStatus(projectRoot);
@@ -243,6 +249,10 @@ export const init = async () => {
Log.info(' ' + chalk.blue(`cd ${cdToFolder}`));
}
+ if (!installedDependencies) {
+ Log.info(' ' + chalk.blue(getInstallCommand(pkgManager)));
+ }
+
Log.info(' ' + chalk.blue(getDevCommand(pkgManager, selectedTemplate)));
Log.info('');
Log.info('To render a video, run:');
diff --git a/packages/docs/docs/ai/coding-agents.mdx b/packages/docs/docs/ai/coding-agents.mdx
index 1760ef2a45..4245b70d1b 100644
--- a/packages/docs/docs/ai/coding-agents.mdx
+++ b/packages/docs/docs/ai/coding-agents.mdx
@@ -36,12 +36,6 @@ If you named your project `my-video`, you would run the following command:
cd my-video
```
-Install dependencies
-
-```bash
-npm install
-```
-
Install the [Remotion Agent Skills](/docs/ai/skills):
```bash title="Terminal"
diff --git a/packages/docs/docs/getting-started.mdx b/packages/docs/docs/getting-started.mdx
index 1ebb4ca697..58fe8b2ec7 100644
--- a/packages/docs/docs/getting-started.mdx
+++ b/packages/docs/docs/getting-started.mdx
@@ -28,7 +28,6 @@ Paste into a coding agent, such as Claude Code, Codex or OpenCode:
```sh
npx create-video@latest --yes --blank --no-tailwind my-video
cd my-video
-npm i
npx remotion skills add
npm run dev
```