File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 执行命令安装 nodejs。
7878 ```
7979 # 下载并安装 nodejs,node 版本可能会变化,如版本升级,请更新连接
80- wget https://nodejs.org/dist/latest-v22.x/node-v22.19 .0-linux-x64.tar.gz
81- tar xvf node-v22.19 .0-linux-x64.tar.gz
82- mv node-v22.19 .0-linux-x64 /opt/node-v22.19 .0
80+ wget https://nodejs.org/dist/latest-v22.x/node-v22.21 .0-linux-x64.tar.gz
81+ tar xvf node-v22.21 .0-linux-x64.tar.gz
82+ mv node-v22.21 .0-linux-x64 /opt/node-v22.21 .0
8383
8484 # 添加环境变量
85- echo "export PATH=\$ PATH:/opt/node-v22.19 .0/bin" >> ~ /.bashrc
85+ echo "export PATH=\$ PATH:/opt/node-v22.21 .0/bin" >> ~ /.bashrc
8686
8787 # 使环境变量生效
8888 source ~ /.bashrc
9191 验证 nodejs。
9292 ```
9393 root@iZt4ndy6544y6f1i99ahw0Z:~ # node --version
94- v22.18 .0
94+ v22.21 .0
9595
9696 root@iZt4ndy6544y6f1i99ahw0Z:~ # npm version
9797 {
98- npm: '10.9.3 ',
99- node: '22.18 .0',
100- acorn: '8.15.0',
101- ada: '2.9.2',
102- amaro: '1.1.0 ',
103- ares: '1.34.5',
104- brotli: '1.1.0',
105- cjs_module_lexer: '2.1.0',
106- cldr: '47.0',
107- icu: '77.1',
108- llhttp: '9.3.0',
109- modules: '127',
110- napi: '10',
111- nbytes: '0.1.1',
112- ncrypto: '0.0.1',
113- nghttp2: '1.64.0',
114- openssl: '3.0.16 ',
115- simdjson: '3.13.0',
116- simdutf: '6.4.2',
117- sqlite: '3.50.2 ',
118- tz: '2025b',
119- undici: '6.21.2 ',
120- unicode: '16.0',
121- uv: '1.51.0',
122- uvwasi: '0.0.21 ',
123- v8: '12.4.254.21-node.27 ',
124- zlib: '1.3.1-470d3a2',
125- zstd: '1.5.7'
98+ npm: '10.9.4 ',
99+ node: '22.21 .0',
100+ acorn: '8.15.0',
101+ ada: '2.9.2',
102+ amaro: '1.1.4 ',
103+ ares: '1.34.5',
104+ brotli: '1.1.0',
105+ cjs_module_lexer: '2.1.0',
106+ cldr: '47.0',
107+ icu: '77.1',
108+ llhttp: '9.3.0',
109+ modules: '127',
110+ napi: '10',
111+ nbytes: '0.1.1',
112+ ncrypto: '0.0.1',
113+ nghttp2: '1.64.0',
114+ openssl: '3.5.4 ',
115+ simdjson: '3.13.0',
116+ simdutf: '6.4.2',
117+ sqlite: '3.50.4 ',
118+ tz: '2025b',
119+ undici: '6.22.0 ',
120+ unicode: '16.0',
121+ uv: '1.51.0',
122+ uvwasi: '0.0.23 ',
123+ v8: '12.4.254.21-node.33 ',
124+ zlib: '1.3.1-470d3a2',
125+ zstd: '1.5.7'
126126 }
127127 ```
128128
207207
208208 # 编译后端
209209 cd ../backend
210- uv sync
210+ uv sync --extra cpu
211211 ```
212212
213213### 3.4 运行
331331 root@iZt4n65gnl36fhkxbx0qgrZ:~/SQLBot# docker images
332332 REPOSITORY TAG IMAGE ID CREATED SIZE
333333 registry.cn-qingdao.aliyuncs.com/dataease/sqlbot dev-rc1 dfe2e3227a66 8 minutes ago 3.98GB
334- ```
334+ ```
You can’t perform that action at this time.
0 commit comments