Bug#960284: [Pkg-javascript-devel] Bug#960284: npm tries to use git, but git is not listed in dependencies

2020-05-11 Thread Nikolay Shaplov
В письме от понедельник, 11 мая 2020 г. 16:40:31 MSK пользователь Jérémy Lal 
написал:
> > I am following some HOWTO guide and run
> > 
> > # npm install matrix-appservice-irc --global
> > 
> > and it fails because git is missing
> > 
> > ../..
> > 
> > I guess getting sources using git is a normal way for npm.
> 
> No, it isn't. Normal way is npm packages.
I actually know nothing about npm internals, but from what I can see from the 
outside, I would not agree with you.

I did not provided npm with any kind of git:// url. I just gave a name matrix-
appservice-irc and npm somehow came to an idea of fetching something using 
git. If it is its idea, not mine, I guess it should provide itself with all 
necessary means by itself. For me it should work like that: I install it, I 
give it a name, it fetches. That is user experience I would expect.

Thats how I see it as an experienced debian user that has no knowledge about 
npm internals.



Bug#960284: [Pkg-javascript-devel] Bug#960284: npm tries to use git, but git is not listed in dependencies

2020-05-11 Thread Jérémy Lal
Le lun. 11 mai 2020 à 16:33, Nikolay Shaplov  a écrit :

> Package: npm
> Version: 5.8.0+ds6-4+deb10u1
> Severity: normal
>
> I am following some HOWTO guide and run
>
> # npm install matrix-appservice-irc --global
>
> and it fails because git is missing
>
> ../..
>
> I guess getting sources using git is a normal way for npm.


No, it isn't. Normal way is npm packages.


> Then I guess
> git should be listed in 'depends' section for npm.


This is on purpose.


> Or at least in
> 'suggests'. But it is not listed at all.
>

Yes, why not add it to npm's Suggests.

Jérémy