3 ms·
Why isn't GitHub the source of all node packages? npm supports it very nicely. I mean: why don't people write `npm install user/repo --save` instead of `npm in
by fiatjaf 11y ago
Why isn't GitHub the source of all node packages? npm supports it very nicely.
I mean: why don't people write `npm install user/repo --save` instead of `npm install package --save` every time already?
- _ZeD_ 11y agobecause it does not make sense: I don't want the sources, I want a usable package...
- Havvy 11y agoBecause there's no version control that way. If I depended upon babel/babel (or whatever it's called on Github), when it changed from v5.x to v6.x, it would have broken my build.
- SlashmanX 11y agoYou can ask for a specific tag/branch using Github dependencies using babel/babel#v5.x
- alessioalex 11y agoIn addition to what other people have said, the exact same thing could have happened even if the project was only hosted on Github. Github could receive a DMCA notice, take down the repo and buf.. gone.