installing nodejs on 22.04
Colin Law
clanlaw at gmail.com
Wed Nov 15 20:42:54 UTC 2023
On Wed, 15 Nov 2023 at 04:10, Chandra Amarasingham via ubuntu-users
<ubuntu-users at lists.ubuntu.com> wrote:
>
> Hi,
>
> When I try and install nodejs using
>
> apt install nodejs
>
> I get the following error
>
> The following packages have unmet dependencies:
> libnode64 : Depends: libicu66 (>= 66.1-1~) but it is not installable
> Depends: libssl1.1 (>= 1.1.1) but it is not installable
>
>
> I realize I can probably download and install these dependencies separately but would prefer to keep everything under the ubuntu packaging and release process.
>
> Any ideas?
The version of nodejs supplied with Ubuntu 22.04 is 12.22.9 which is
long out of support.
I advise installing nodejs from nodesource. Then you will be
guaranteed a compatible version of npm and regular updates. npm comes
in the install package so you don't need to install it separately.
Install instructions at https://github.com/nodesource/distributions
I suggest installing an LTS version. The current LTS is 20.x but that
is still quite new so 18 might be safer, though I have been using 20
for months without issue.
Colin L
More information about the ubuntu-users
mailing list