升级node版本到20

This commit is contained in:
启航老齐 2026-03-07 11:00:00 +08:00
parent baae830022
commit e929a0dee8
6 changed files with 16 additions and 14 deletions

3
.gitignore vendored
View File

@ -35,4 +35,5 @@ build/
.vscode/ .vscode/
### Mac OS ### ### Mac OS ###
.DS_Store .DS_Store
.qoder

View File

@ -185,14 +185,15 @@ graph TD
## 四、项目架构 ## 四、项目架构
### 1、开发环境级组件 ### 1、开发环境级组件
#### 1.1 开发环境 #### 1.1 开发环境
+ Jdk17 + Java17
+ Nodejsv16.20.0 + Nodejsv20.20.0
+ Maven3.9
#### 1.2、存储及中间件 #### 1.2、存储及中间件
+ MySQL8 + MySQL8
+ Redis7.x + Redis7.x
+ Nacos2.3.1(注册中心) + Nacos2.3.2(注册中心)
+ Sentinel分布式流量治理组件 + Sentinel分布式流量治理组件
@ -280,7 +281,7 @@ graph TD
3. 启动微服务网关(`gateway` 3. 启动微服务网关(`gateway`
#### 3.4、运行前端 #### 3.4、运行前端
+ Nodejs版本v16.20.0 + Nodejs版本v20.20.0
+ 进入`vue`文件夹 + 进入`vue`文件夹
+ 运行`npm install` + 运行`npm install`
+ 运行`npm run dev` + 运行`npm run dev`
@ -327,8 +328,7 @@ location /prod-api/ {
proxy_connect_timeout 60s; # 连接超时时间 proxy_connect_timeout 60s; # 连接超时时间
# --- 结束新增 --- # --- 结束新增 ---
#proxy_pass http://10.0.2.22:8088/; proxy_pass http://127.0.0.1:8088/;
proxy_pass http://172.17.62.227:8088/;
} }
``` ```
+ docker运行 + docker运行
@ -340,7 +340,7 @@ location /prod-api/ {
### 5.1 赠人玫瑰手留余香 ### 5.1 赠人玫瑰手留余香
💖 如果觉得有用记得点个 Star⭐ 💖 如果觉得有用记得点个 Star⭐
<img src="docs/star.jpg" width="300px" />
### 5.2 一起交流 ### 5.2 一起交流

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@ -18,6 +18,7 @@
<module>service</module> <module>service</module>
</modules> </modules>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot.version>3.0.2</spring-boot.version> <spring-boot.version>3.0.2</spring-boot.version>

View File

@ -5,7 +5,7 @@
# 进入项目目录 # 进入项目目录
cd zhijian-vue cd vue
# 安装依赖 # 安装依赖
npm install npm install

View File

@ -5,10 +5,10 @@
"author": "qihang", "author": "qihang",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build:prod": "vue-cli-service build", "build:prod": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging", "build:stage": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging",
"preview": "node build/index.js --preview", "preview": "set NODE_OPTIONS=--openssl-legacy-provider && node build/index.js --preview",
"lint": "eslint --ext .js,.vue src" "lint": "eslint --ext .js,.vue src"
}, },
"husky": { "husky": {
@ -83,7 +83,7 @@
"vue-template-compiler": "2.6.12" "vue-template-compiler": "2.6.12"
}, },
"engines": { "engines": {
"node": ">=8.9", "node": ">=20.0.0",
"npm": ">= 3.0.0" "npm": ">= 3.0.0"
}, },
"browserslist": [ "browserslist": [