3.20 - Installing npm before/without nodejs installs nodejs-current
Package Information
- Package name: npm
- Package version: 10.8.0-r0
- Alpine version: 3.20.2
- Alpine architecture: x86_64
Summary
Installing npm
without any nodejs package installed installs nodejs-current
as a dependency, though https://pkgs.alpinelinux.org/package/v3.20/community/x86_64/npm shows the depends as nodejs
. Attempting to install nodejs
after npm
will complete without error but does not change the installed package from nodejs-current
Installing npm
after or at the same time as installing nodejs
does not install nodejs-current
Steps to reproduce
In a clean 3.20 install:
- apk add npm
- See
(7/8) Installing nodejs-current (21.7.3-r0)
(8/8) Installing npm (10.8.0-r0)
In a clean 3.20 install:
- apk add npm
- apk add nodejs
- See
(7/8) Installing nodejs-current (21.7.3-r0)
(8/8) Installing npm (10.8.0-r0)
Executing busybox-1.36.1-r29.trigger
OK: 92 MiB in 58 packages
root@c9fa813f815b:/# apk add nodejs
OK: 92 MiB in 58 packages
In a clean 3.20 install:
- apk add nodejs
- apk add npm
- See
(7/7) Installing nodejs (20.15.1-r0)
Executing busybox-1.36.1-r29.trigger
OK: 75 MiB in 57 packages
root@e80c6c6ba1cd:/# apk add npm
(1/1) Installing npm (10.8.0-r0)
Executing busybox-1.36.1-r29.trigger
In a clean 3.20 install:
- apk add npm nodejs
- See
(7/8) Installing nodejs (20.15.1-r0)
(8/8) Installing npm (10.8.0-r0)