[Pkg-javascript-devel] Bug#1025666: Bug#1025666: Bug#1025666: Installing npm on 11.5 pulls x11

Jérémy Lal kapouer at melix.org
Wed Dec 7 13:51:33 GMT 2022


Le mer. 7 déc. 2022 à 14:33, Yadd <yadd at debian.org> a écrit :

> On 07/12/2022 09:30, Pierre-Gildas MILLON wrote:
> > Package: npm
> > Version: 7.5.2+ds-2
> >
> > I'm building a python3.10-slim docker image with pm2 for development
> > purposes. When running apt install npm (to install pm2), I end up with
> > x11 installed:
> >
> > # apt install npm
> > [...]
> > 0 upgraded, 393 newly installed, 0 to remove and 4 not upgraded.
> > Need to get 132 MB of archives.
> > After this operation, 512 MB of additional disk space will be used.
> >
> > This seems way to much just for npm running on a headless environment.
> >
> > Regards,
> >
> > pgmillon
>
> Hi,
>
> npm has a lot of features and depends on nodejs and its eco-system.
> Installing npm from npmjs.org + nodejs requires the same space.
>
> When building your docker image, you can safely remove /usr/share/nodejs
> and nodejs packages after using npm.


Also, I remember that some dependency of npm (maybe the one that calls
xdg-open)
recommends or suggests some x11 packages, and one can inadvertently install
those,
but it was possible to not install them (by installing only dependencies).
Sorry for the lack of details, I don't remember right away the name of the
package.

Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20221207/70df534f/attachment.htm>


More information about the Pkg-javascript-devel mailing list