Skip to content

Commit

Permalink
docs: upgrade node to 18 (#12380)
Browse files Browse the repository at this point in the history
  • Loading branch information
hualigushi authored May 16, 2024
1 parent ef3a9e1 commit 11ebbad
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docs/docs/docs/guides/getting-started.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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。

Expand All @@ -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,但也可以选择其他方案,
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/docs/guides/prepare.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -28,16 +28,16 @@ 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:

```bash
node -v

v16.14.0
v18.14.0
```

## Dependency Management
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/docs/guides/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 的版本;
Expand All @@ -28,16 +28,16 @@ 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
```

安装完成后,使用以下命令来检查是否安装成功并且安装了正确的版本:

```bash
node -v

v16.14.0
v18.14.0
```

## 依赖管理
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/docs/introduce/contributing.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/docs/introduce/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 11ebbad

Please sign in to comment.