Skip to content

升级

¥Upgrade

最新版本

¥Latest version

要更新到最新版本的 Next.js,你可以使用 upgrade codemod:

¥To update to the latest version of Next.js, you can use the upgrade codemod:

bash
npx @next/codemod@canary upgrade latest

如果你希望手动升级,请安装最新的 Next.js 和 React 版本:

¥If you prefer to upgrade manually, install the latest Next.js and React versions:

bash
npm i next@latest react@latest react-dom@latest eslint-config-next@latest

预览版本

¥Canary version

要更新到最新的 Canary 版本,请确保你使用的是最新版本的 Next.js 并且一切正常。然后,运行以下命令:

¥To update to the latest canary, make sure you're on the latest version of Next.js and everything is working as expected. Then, run the following command:

bash
npm i next@canary

Next.js v15.3 中文网 - 粤ICP备13048890号