DEV Community

[Comment from a deleted post]
 
oloryn profile image
Ben Coleman • Edited

I take it that it's been awhile since you actually looked at nodejs versions on current Ubuntu Server repos? Ubuntu Server 20.04 has nodejs version 10.19.0, 18.04 had 8.10.0, and 16.04 had 4.2.6. 20.04 is still a bit behind, as the current nodejs is at 14.4.0. Given that Debian testing is using nodejs 10.21.0, and Sid is using 12.18.0, the nodejs version situation on Ubuntu isn't as bad as you imply.

 
rehman000 profile image
Rehman Arshad

I was not using ubuntu server, sorry my mistake. I was using ubuntu 18.04 LTS for my laptop. The issue most likely has been resolved last I checked. I'll take this as an opportunity to expand my knowledge are there any differences between repositories from ubuntu and ubuntu server? I haven't tried out ubuntu server yet. My bad.

 
oloryn profile image
Ben Coleman

No, they both draw from the same repositories. I specified Server because that's what I was checking (between work and my personal servers, I've got servers running on all 3 versions (16.04, 18.04, and 20.04)).

I note that the nodejs package is in the Universe repo, which is essentially community-supported, as opposed to the Main repo, which is directly supported by the Ubuntu team. I wouldn't be surprised if the nodejs package is generally pulled from Debian stable or testing at the time of release (given that 20.04 has 10.19.0, and the current Debian stable and testing both have 10.21.0).

 
rehman000 profile image
Rehman Arshad • Edited

Could it have been because I was using WSL (Windows Sub System for Linux) on my partition? That is a whole other can of worms. Honestly, I have no idea. I don't even remember if it was on my windows partition with WSL or the Ubuntu partition. Most likely it was WSL.

 
oloryn profile image
Ben Coleman

No. AFAIK, the WSL version and the normal Ubuntu use the same repositories. That looks like you're using Ubuntu 18.04. 2 years ago when it was released, 8.10.0 probably wasn't the latest, but it probably wouldn't have been obsolete.