Skip to content

Commit

Permalink
Fix: After executing npm i --force locally, the login page cannot be …
Browse files Browse the repository at this point in the history
…opened #4290 (#4292)

### What problem does this PR solve?

Fix: After executing npm i --force locally, the login page cannot be
opened #4290

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 authored Dec 30, 2024
1 parent d1971e9 commit f619d5a
Show file tree
Hide file tree
Showing 9 changed files with 110 additions and 265 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ RUN --mount=type=cache,id=ragflow_poetry,target=/root/.cache/pypoetry,sharing=lo
COPY web web
COPY docs docs
RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
cd web && npm install --force && npm run build
cd web && npm install && npm run build

COPY .git /ragflow/.git

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ docker build -f Dockerfile -t infiniflow/ragflow:nightly .
6. Install frontend dependencies:
```bash
cd web
npm install --force
npm install
```
7. Launch frontend service:
```bash
Expand Down
2 changes: 1 addition & 1 deletion README_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ docker build -f Dockerfile -t infiniflow/ragflow:nightly .
6. Instal dependensi frontend:
```bash
cd web
npm install --force
npm install
```
7. Jalankan aplikasi frontend:
```bash
Expand Down
2 changes: 1 addition & 1 deletion README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ docker build -f Dockerfile -t infiniflow/ragflow:nightly .
6. フロントエンドの依存関係をインストールする:
```bash
cd web
npm install --force
npm install
```
7. フロントエンドサービスを起動する:
```bash
Expand Down
2 changes: 1 addition & 1 deletion README_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ docker build -f Dockerfile -t infiniflow/ragflow:nightly .
6. 프론트엔드 의존성을 설치합니다:
```bash
cd web
npm install --force
npm install
```
7. 프론트엔드 서비스를 시작합니다:
```bash
Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ docker build --build-arg NEED_MIRROR=1 -f Dockerfile -t infiniflow/ragflow:night
6. 安装前端依赖:
```bash
cd web
npm install --force
npm install
```
7. 启动前端服务:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/develop/launch_ragflow_from_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ docker compose -f docker/docker-compose-base.yml up -d

```bash
cd web
npm install --force
npm install
```

2. Update `proxy.target` in **.umirc.ts** to `http://127.0.0.1:9380`:
Expand Down
Loading

0 comments on commit f619d5a

Please sign in to comment.