<
From version < 77.1 >
edited by Xiaoye
on 2022/11/12 14:50
To version < 78.1 >
edited by Xiaoye
on 2022/11/12 14:57
>
Change comment: There is no comment for this version

Summary

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  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0