Skip to content

Commit dd3eefb

Browse files
authored
fix(studio): 使spring-ai-alibaba-studio的前端可以在Windows上编译 (alibaba#2362)
1 parent fc07031 commit dd3eefb

File tree

6 files changed

+439
-15
lines changed

6 files changed

+439
-15
lines changed

spring-ai-alibaba-studio/spring-ai-alibaba-studio-server/frontend/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,14 @@ frontend/
5555
Before starting the web frontend service, please ensure the following environment is ready:
5656
- [Node.js](https://nodejs.org) >= v20
5757

58-
First, install dependencies in the root directory:
58+
59+
First, install the required dependencies in the root directory:
60+
61+
```bash
62+
npm install rimraf copyfiles cross-env --save-dev
63+
```
64+
65+
Then, install all project dependencies:
5966

6067
```bash
6168
npm run re-install
@@ -65,8 +72,16 @@ Then, configure environment variables. Create a file named `.env` in the current
6572

6673
```bash
6774
cd packages/main
75+
```
76+
On macOS/Linux:
77+
```bash
6878
cp .env.example .env
6979
```
80+
On Windows (PowerShell):
81+
```bash
82+
Copy-Item .env.example .env
83+
```
84+
7085

7186
```
7287
# Web server URL

spring-ai-alibaba-studio/spring-ai-alibaba-studio-server/frontend/README.zh-CN.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ frontend/
5555
在启动 Web 前端服务之前,请确保以下环境已准备就绪。
5656
- [Node.js](https://nodejs.org) >= v20
5757

58-
首先,根目录下安装依赖项:
58+
首先,在根目录下安装依赖项:
59+
60+
```bash
61+
npm install rimraf copyfiles --save-dev
62+
```
63+
64+
然后安装所有项目依赖:
5965

6066
```bash
6167
npm run re-install
@@ -64,8 +70,15 @@ npm run re-install
6470
然后,配置环境变量。在当前目录中创建一个名为`.env`的文件,并从`.env.example`复制内容。根据您的需求修改这些环境变量的值:
6571

6672
```bash
67-
cd
68-
cp ./packages/main/.env.example ./packages/main/.env
73+
cd packages/main
74+
```
75+
在 macOS/Linux 中:
76+
```bash
77+
cp .env.example .env
78+
```
79+
在 Windows (PowerShell) 中:
80+
```bash
81+
Copy-Item .env.example .env
6982
```
7083

7184
```

0 commit comments

Comments
 (0)