Changes for page Armbian OS instruction
Last modified by Edwin Chen on 2025/02/26 08:18
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -171,6 +171,57 @@ 171 171 172 172 173 173 174 +== 2.5: How to upgrade the nodejs version to the latest. == 175 + 176 + 177 +By default, the nodejs uses the pre-install version v12 which is due to Debian the ultra-stable via ultra-old. 178 + 179 +[[image:image-20221112145029-2.png]] 180 + 181 +**If you want to upgrade the nodejs to the latest, please follow to use these commands on the gateway CIL.** 182 + 183 + 184 +#install n, which is an Interactively Manage Your Node.js Versions 185 + 186 + 187 +(% class="box infomessage" %) 188 +((( 189 +**npm install -g n** 190 +))) 191 + 192 + 193 +#Install the latest LTS Node.js release (downloading if necessary) 194 + 195 +(% class="box infomessage" %) 196 +((( 197 +**n lts** 198 +))) 199 + 200 + 201 +#Remove all downloaded versions except the installed version 202 + 203 + 204 +(% class="box infomessage" %) 205 +((( 206 +**n prune** 207 +))) 208 + 209 + 210 +(% class="box infomessage" %) 211 +((( 212 +**apt remove nodejs -y && apt autoremove -y** 213 +))) 214 + 215 + 216 +Check the current version 217 + 218 + 219 +(% class="box infomessage" %) 220 +((( 221 +**node -v** 222 +))) 223 + 224 + 174 174 = 3. Package Maintain Note = 175 175 176 176
- image-20221112145029-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoye - Size
-
... ... @@ -1,0 +1,1 @@ 1 +3.3 KB - Content