For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/rspeedy/upgrade.md.
Rspeedy logo
Rspeedy
  • 简体中文
  • 升级 Rspeedy

    本节介绍如何升级项目中的 Rspeedy 相关依赖。

    使用 upgrade-rspeedy

    Rspeedy 项目包含几个带有 peerDependencies 约束的 NPM 包。不匹配的 peerDependencies 可能导致编译和运行时错误。

    我们建议使用 upgrade-rspeedy 工具来升级 Rspeedy 版本。

    Info

    upgrade-rspeedy 命令不会为你安装依赖。

    请记得使用你的包管理器安装依赖项。

    升级到 latest 版本(推荐)

    要将 @lynx-js/rspeedy 及其插件升级到最新版本,请在你的项目中使用以下命令:

    npm
    pnpm
    bun
    yarn
    npx upgrade-rspeedy@latest

    为了避免在较大的仓库中使用 npx 遇到的性能问题,在基于 pnpm 的 monorepo 中可以使用 pnpm dlx

    升级到特定版本

    要将 @lynx-js/rspeedy 及其插件升级到特定版本,请在你的项目中使用以下命令:

    npm
    pnpm
    bun
    yarn
    npx upgrade-rspeedy@0.15.0

    0.15.0 替换为你想要安装的版本。

    升级到 canary 版本

    Warning

    请注意,Rspeedy 的 canary 版本仅发布用于测试目的。

    重要提示: 不要在生产环境中使用 canary 版本。

    要在正式发布前将 @lynx-js/rspeedy 及其插件升级到 canary 版本,请使用以下命令:

    # 将 `0.15.1-canary-20260624-897063d1` 替换为你的 canary 版本。
    npx upgrade-rspeedy-canary@0.15.1-canary-20260624-897063d1
    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。