Skip to content

🎥 Make videos programmatically with React

Give no warning if Remotion CLI is installed globally

Jonny Burger701e7c667925
diff --git a/packages/cli/src/versions.ts b/packages/cli/src/versions.ts
index d09a340a82..043b160132 100644
--- a/packages/cli/src/versions.ts
+++ b/packages/cli/src/versions.ts
@@ -62,6 +62,12 @@ export const validateVersionsBeforeCommand = async (
return;
}
+ // Could be a global install of @remotion/cli.
+ // If you render a bundle with a different version, it will give a warning accordingly.
+ if (installedVersions.length === 0) {
+ return;
+ }
+
const logOptions: LogOptions = {indent: false, logLevel};
Log.warn(logOptions, '-------------');
Log.warn(logOptions, 'Version mismatch:');