Skip to content

Commit

Permalink
feat: add description in README.md about how to install node environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Echo-minn committed Apr 7, 2024
1 parent cb8bc5e commit 79624dc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,20 @@ git clone https://github.com/internlm/OpenAOE
cd OpenAOE/openaoe/frontend
npm install
npm run build

# If you don't have NodeJS or npm, install it by:
# installs NVM (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# download and install Node.js
nvm install 20
# verifies the right Node.js version is in the environment
node -v # should print `v20.12.1`
# verifies the right NPM version is in the environment
npm -v # should print `10.5.0`
```

> [!TIP]
> Other latest Node.js versions can be found [here](https://nodejs.org/en/download/package-manager).
### **Start**
```shell
Expand Down
12 changes: 12 additions & 0 deletions docs/README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,20 @@ git clone https://github.com/internlm/OpenAOE
cd OpenAOE/openaoe/frontend
npm install
npm run build

# 如果你没有安装 Node.js,你可以通过以下方式安装::
# install NVM (Node 版本管理器)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# 下载并安装 Node.js,可以指定版本
nvm install 20
# 验证 Node.js 版本
node -v # 应该打印 `v20.12.1`
# 验证 NPM 版本
npm -v # 应该打印 `10.5.0`
```

> [!TIP]
> 其他Node.js版本可以查询 [Node.js官网](https://nodejs.org/en/download/package-manager)
### **运行**
```shell
Expand Down

0 comments on commit 79624dc

Please sign in to comment.