Skip to main content

npx remotion 升级

升级所有与 Remotion 相关的包。

🌐 Upgrades all Remotion-related packages.

如果已安装 mediabunny,它也将升级到与新 Remotion 版本兼容的版本 compatible with the new Remotion version

🌐 If mediabunny is installed, it will also be upgraded to the version compatible with the new Remotion version.

npx remotion upgrade

标志

🌐 Flags

--package-managerv3.2.33

Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.
Acceptable values are npm, yarn, pnpm and bun.

--versionv4.0.15

Install a specific version. Also enables downgrading to an older version.

包管理器支持

🌐 Package manager support

npmyarnpnpm 都支持。

附加参数

🌐 Additional arguments

你传递给此命令的任何额外参数将在软件包列表之前作为标志转发给包管理器。
在 v4.0.246 之前,额外参数会被忽略。

🌐 Any additional arguments you pass to this command will be forwarded as flags to the package manager, before the list of packages.
Before v4.0.246, additional arguments were ignored.

npm updateyarn upgradepnpm up 的区别

🌐 Difference to npm update, yarn upgrade, pnpm up

这些命令在没有参数的情况下执行时会升级你项目中的所有依赖。我们不推荐这样做,因为当你只想升级 Remotion 时,可能会无意中破坏项目的其他部分。

🌐 These commands, when executed without arguments will upgrade all dependencies in your project. We recommend against it because you may unintentionally break other parts of your project when you only wanted to upgrade Remotion.