diff --git a/docs/docs/docs/guides/getting-started.en-US.md b/docs/docs/docs/guides/getting-started.en-US.md index 0e95cf45ae6f..aa103c6fc520 100644 --- a/docs/docs/docs/guides/getting-started.en-US.md +++ b/docs/docs/docs/guides/getting-started.en-US.md @@ -8,7 +8,7 @@ translated_at: '2024-03-17T10:30:12.385Z' ## Environment Setup -First, you need to have node installed and make sure your node version is 14 or above. (It's recommended to use [nvm](https://github.com/nvm-sh/nvm) to manage node versions on Mac or Linux, and [nvm-windows](https://github.com/coreybutler/nvm-windows) for Windows users.) +First, you need to have node installed and make sure your node version is 18 or above. (It's recommended to use [nvm](https://github.com/nvm-sh/nvm) to manage node versions on Mac or Linux, and [nvm-windows](https://github.com/coreybutler/nvm-windows) for Windows users.) Install nvm on Mac or Linux. @@ -21,10 +21,10 @@ $ nvm -v Install node. ``` -$ nvm install 16 -$ nvm use 16 +$ nvm install 18 +$ nvm use 18 $ node -v -v16.10.0 +v18.10.0 ``` Then you need a package management tool. While npm comes with node by default, you can also choose other options, diff --git a/docs/docs/docs/guides/getting-started.md b/docs/docs/docs/guides/getting-started.md index 0f9bc7f6d30e..ec4fe00a8339 100644 --- a/docs/docs/docs/guides/getting-started.md +++ b/docs/docs/docs/guides/getting-started.md @@ -6,7 +6,7 @@ toc: content ## 环境准备 -首先得有 node,并确保 node 版本是 14 或以上。(推荐用 [nvm](https://github.com/nvm-sh/nvm) 来管理 node 版本,windows 下推荐用 [nvm-windows](https://github.com/coreybutler/nvm-windows)) +首先得有 node,并确保 node 版本是 18 或以上。(推荐用 [nvm](https://github.com/nvm-sh/nvm) 来管理 node 版本,windows 下推荐用 [nvm-windows](https://github.com/coreybutler/nvm-windows)) mac 或 linux 下安装 nvm。 @@ -19,10 +19,10 @@ $ nvm -v 安装 node。 ``` -$ nvm install 16 -$ nvm use 16 +$ nvm install 18 +$ nvm use 18 $ node -v -v16.10.0 +v18.10.0 ``` 然后需要包管理工具。node 默认包含 npm,但也可以选择其他方案, diff --git a/docs/docs/docs/guides/prepare.en-US.md b/docs/docs/docs/guides/prepare.en-US.md index 7b27add831b9..3a6bd5064ba4 100644 --- a/docs/docs/docs/guides/prepare.en-US.md +++ b/docs/docs/docs/guides/prepare.en-US.md @@ -10,7 +10,7 @@ This article will guide you through setting up a local development environment f ## Nodejs -Umi.js development requires [Node.js](https://nodejs.org/en/), so please ensure that Node.js is installed on your computer and its version is above 14. +Umi.js development requires [Node.js](https://nodejs.org/en/), so please ensure that Node.js is installed on your computer and its version is above 18. :::info{title=💡} If you are a macOS user, it is recommended to use [nvm](https://github.com/nvm-sh/nvm) to manage the versions of Node.js; Windows users are recommended to use [nvm-windows](https://github.com/coreybutler/nvm-windows). @@ -28,8 +28,8 @@ nvm -v After installing [nvm](https://github.com/nvm-sh/nvm), use the following commands to install [Node.js](https://nodejs.org/en/): ```bash -nvm install 16 -nvm use 16 +nvm install 18 +nvm use 18 ``` After the installation is complete, use the following commands to check if the installation was successful and the correct version was installed: @@ -37,7 +37,7 @@ After the installation is complete, use the following commands to check if the i ```bash node -v -v16.14.0 +v18.14.0 ``` ## Dependency Management diff --git a/docs/docs/docs/guides/prepare.md b/docs/docs/docs/guides/prepare.md index b6af98c8bd89..0937d206cd26 100644 --- a/docs/docs/docs/guides/prepare.md +++ b/docs/docs/docs/guides/prepare.md @@ -9,7 +9,7 @@ toc: content ## Nodejs -Umi.js 需要使用 [Node.js](https://nodejs.org/zh-cn/) 来进行开发,因此请先确保电脑已经安装了 Node.js 且版本在 14 以上。 +Umi.js 需要使用 [Node.js](https://nodejs.org/zh-cn/) 来进行开发,因此请先确保电脑已经安装了 Node.js 且版本在 18 以上。 :::info{title=💡} 如果你是 macOS 用户,建议使用 [nvm](https://github.com/nvm-sh/nvm) 来管理 Node.js 的版本; @@ -28,8 +28,8 @@ nvm -v 安装完成 [nvm](https://github.com/nvm-sh/nvm) 之后,使用以下命令来安装 [Node.js](https://nodejs.org/zh-cn/) : ```bash -nvm install 16 -nvm use 16 +nvm install 18 +nvm use 18 ``` 安装完成后,使用以下命令来检查是否安装成功并且安装了正确的版本: @@ -37,7 +37,7 @@ nvm use 16 ```bash node -v -v16.14.0 +v18.14.0 ``` ## 依赖管理 diff --git a/docs/docs/docs/introduce/contributing.en-US.md b/docs/docs/docs/introduce/contributing.en-US.md index 447c798cf631..22549218dd3f 100644 --- a/docs/docs/docs/introduce/contributing.en-US.md +++ b/docs/docs/docs/introduce/contributing.en-US.md @@ -12,7 +12,7 @@ translated_at: '2024-03-17T09:56:34.842Z' ### Node.js and pnpm -Developing Umi requires Node.js 16+ and `pnpm` v8. +Developing Umi requires Node.js 18+ and `pnpm` v8. It is recommended to use [`nvm`](https://github.com/nvm-sh/nvm) to manage Node.js versions to avoid permission issues and easily switch between Node.js versions. Windows developers can use [`nvm-windows`](https://github.com/coreybutler/nvm-windows). diff --git a/docs/docs/docs/introduce/contributing.md b/docs/docs/docs/introduce/contributing.md index 57bf115b4620..164c7f602fe5 100644 --- a/docs/docs/docs/introduce/contributing.md +++ b/docs/docs/docs/introduce/contributing.md @@ -11,7 +11,7 @@ toc: content ### Node.js 和 pnpm -开发 Umi 需要 Node.js 16+ 和 `pnpm` v8。 +开发 Umi 需要 Node.js 18+ 和 `pnpm` v8。 推荐使用 [`nvm`](https://github.com/nvm-sh/nvm) 管理 Node.js,避免权限问题的同时,还能够随时切换当前使用的 Node.js 的版本。在 Windows 系统下的开发者可以使用 [`nvm-windows`](https://github.com/coreybutler/nvm-windows)。