升级node版本到20
This commit is contained in:
parent
baae830022
commit
e929a0dee8
|
|
@ -36,3 +36,4 @@ build/
|
|||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
.qoder
|
||||
14
README.md
14
README.md
|
|
@ -185,14 +185,15 @@ graph TD
|
|||
## 四、项目架构
|
||||
### 1、开发环境级组件
|
||||
#### 1.1 开发环境
|
||||
+ Jdk:17
|
||||
+ Nodejs:v16.20.0
|
||||
+ Java:17
|
||||
+ Nodejs:v20.20.0
|
||||
+ Maven:3.9
|
||||
|
||||
#### 1.2、存储及中间件
|
||||
|
||||
+ MySQL8
|
||||
+ Redis:7.x
|
||||
+ Nacos:2.3.1(注册中心)
|
||||
+ Nacos:2.3.2(注册中心)
|
||||
+ Sentinel(分布式流量治理组件)
|
||||
|
||||
|
||||
|
|
@ -280,7 +281,7 @@ graph TD
|
|||
3. 启动微服务网关(`gateway`)
|
||||
|
||||
#### 3.4、运行前端
|
||||
+ Nodejs版本:v16.20.0
|
||||
+ Nodejs版本:v20.20.0
|
||||
+ 进入`vue`文件夹
|
||||
+ 运行`npm install`
|
||||
+ 运行`npm run dev`
|
||||
|
|
@ -327,8 +328,7 @@ location /prod-api/ {
|
|||
proxy_connect_timeout 60s; # 连接超时时间
|
||||
# --- 结束新增 ---
|
||||
|
||||
#proxy_pass http://10.0.2.22:8088/;
|
||||
proxy_pass http://172.17.62.227:8088/;
|
||||
proxy_pass http://127.0.0.1:8088/;
|
||||
}
|
||||
```
|
||||
+ docker运行
|
||||
|
|
@ -340,7 +340,7 @@ location /prod-api/ {
|
|||
### 5.1 赠人玫瑰手留余香
|
||||
💖 如果觉得有用记得点个 Star⭐
|
||||
|
||||
<img src="docs/star.jpg" width="300px" />
|
||||
|
||||
|
||||
### 5.2 一起交流
|
||||
|
||||
|
|
|
|||
BIN
docs/star.jpg
BIN
docs/star.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 19 KiB |
1
pom.xml
1
pom.xml
|
|
@ -18,6 +18,7 @@
|
|||
<module>service</module>
|
||||
</modules>
|
||||
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring-boot.version>3.0.2</spring-boot.version>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
# 进入项目目录
|
||||
cd zhijian-vue
|
||||
cd vue
|
||||
|
||||
# 安装依赖
|
||||
npm install
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
"author": "qihang",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "vue-cli-service serve",
|
||||
"build:prod": "vue-cli-service build",
|
||||
"build:stage": "vue-cli-service build --mode staging",
|
||||
"preview": "node build/index.js --preview",
|
||||
"dev": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
|
||||
"build:prod": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
||||
"build:stage": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging",
|
||||
"preview": "set NODE_OPTIONS=--openssl-legacy-provider && node build/index.js --preview",
|
||||
"lint": "eslint --ext .js,.vue src"
|
||||
},
|
||||
"husky": {
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
"vue-template-compiler": "2.6.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.9",
|
||||
"node": ">=20.0.0",
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"browserslist": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue