Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 33748  / 2 Years ago, thu, october 13, 2022, 11:38:25

I am using Ionic and my builds are failing. It says I need to have the latest npm and node.js. Sadly, my attempts so far from another topic and sudo apt-get update and sudo apt-get upgrade etc is failing to move the version of t 14.17.3 LTS which the website says is the latest LTS.


https://nodejs.org/en/download/


I have many setups and do not want to break others too. It would be very kind if someone can provide the right commands to update to the latest npm and nodejs LTS.


The topics I went through has commands to specific versions and are old. Thanks.


Update 1 :


I installed nodejs 14 from Snap store. But no idea where it is now. When I use nodejs --version it shows v10.


More From » 20.04

 Answers
0

I usually use nvm.

With this tool you can utilize any version of node, side by side on the same machine.


You can install it with curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash


Then download your desired node version nvm install 14 .


Nvm has many other options for managing your node runtimes so check the man page.


[#1305] Saturday, October 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mocipe

Total Points: 161
Total Questions: 106
Total Answers: 118

Location: Cambodia
Member since Thu, Oct 7, 2021
3 Years ago
;