File tree Expand file tree Collapse file tree 1 file changed +35
-7
lines changed
Expand file tree Collapse file tree 1 file changed +35
-7
lines changed Original file line number Diff line number Diff line change 8383!!! Abstract ""
8484 执行命令安装 nodejs。
8585 ```
86- # 下载并安装 nodejs
87- wget https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.xz
88- tar xvf node-v16.15.0-linux-x64.tar.xz
89- mv node-v16.15.0-linux-x64 /opt
90-
91- echo "export PATH=\$ PATH:/opt/node-v16.15.0-linux-x64/bin" >> ~ /.bashrc
92-
86+ #下载并安装 nodejs
87+ wget https://nodejs.org/dist/latest-v18.x/node-v18.20.8-linux-x64.tar.gz
88+ tar zxvf node-v18.20.8-linux-x64.tar.gz
89+ mv node-v18.20.8-linux-x64 /opt
90+ echo "export PATH=\$ PATH:/opt/node-v18.20.8-linux-x64/bin" >> ~ /.bashrc
9391 source ~ /.bashrc
92+
93+ node --version
94+ v18.20.8
95+
96+ npm version
97+ {
98+ npm: '10.8.2',
99+ node: '18.20.8',
100+ acorn: '8.14.0',
101+ ada: '2.8.0',
102+ ares: '1.29.0',
103+ base64: '0.5.2',
104+ brotli: '1.1.0',
105+ cjs_module_lexer: '1.2.2',
106+ cldr: '44.1',
107+ icu: '74.2',
108+ llhttp: '6.1.1',
109+ modules: '108',
110+ napi: '9',
111+ nghttp2: '1.61.0',
112+ openssl: '3.0.16',
113+ simdutf: '5.6.4',
114+ tz: '2024a',
115+ undici: '5.29.0',
116+ unicode: '15.1',
117+ uv: '1.44.2',
118+ uvwasi: '0.0.19',
119+ v8: '10.2.154.26-node.39',
120+ zlib: '1.3.0.1-motley'
121+ }
94122 ```
95123!!! Abstract ""
96124 验证 nodejs。
You can’t perform that action at this time.
0 commit comments