Live data from Hacker News

Many packages suddenly disappeared

github.com

241–250 of 520 posts

Re: Many packages suddenly disappeared

#241
post #26

So they didn't learn anything from left-pad situation from 1.5 year ago? Packages that are published should be immutable, just like in maven repo case.

They don't allow removal of packages. This is likely a cascading storage failure or something along those lines (or else a major hack).

Re: Many packages suddenly disappeared

#242

Stupid question from non-pro here: everyone's always like "never commit libraries into source control." But, um, this kinda thing?

Don't store libraries in your project's repository. It bloats things like hell and makes it difficult to navigate the change sets. Set up your own library cache. Store that cache in its own repo if that floats your boat. Then all of your projects can get their dependencies from your cache.

Well, if you are in other languages that have an actual standard library (so you don't need 500 packages to make up for it) and only a few dependent libraries that are well package and you don't need to update frequently.

Just commit them, don't make things a mess.

Re: Many packages suddenly disappeared

#243

Earlier quoted context omitted.

It badfles me that technologists commonly complain about new technology. As far as I can tell your complaint boils down to “people should stop making and switching to new things”.. I find it hard to understand why someone with this attitude would be a technologist of any kind, and I find the attitude really obnoxious.

https://xkcd.com/927/

We are talking about tools here. Standards are a different beast.

For example it is cool to have multiple tools doing the same thing is cool because you have the choice to use what fits your need (e.g. different Web Servers).

On the other hand, having multiple competing standards for the same job is just technological cancer and mostly the result of some commercial competition (or the attempt to fix a standard by replacing it).

Re: Many packages suddenly disappeared

#244
I don't get why not just use git repo registry (e.g. github) for package management. If you work in a "strict" environment you can basically fork all your dependencies and use your own git repo registry.

NPM already allows using git repos, but needs some tweaks to allow better support:

* allow versioning via git tags

* store git commit in `package-lock.json`.

* maybe something else...

Re: Many packages suddenly disappeared

#245

Earlier quoted context omitted.

yarn is one of those things coming out of the JS world that is actually really well made. yarn, typescript, react; say what you want about js fatigue, these are rock-solid, well-tested projects that are really good at what they do. A major reason for the high toolchurn in that ecosystem is how many of those tools are not designed from the ground up, don't quite solve the things they ought to, or solve them in really…

> yarn, typescript, react; say what you want about js fatigue, these are rock-solid, well-tested projects that are really good at what they do. I wish webpack was on that list.

I mean, there's plenty more that could be on that list, it's not exhaustive.

Webpack though I'm really not sure should be. It's certainly improving, but it's nowhere near the same league as the other ones.

Edit: Ah, I see what you meant :)

Re: Many packages suddenly disappeared

#246

Earlier quoted context omitted.

To be completely fair, it isn't exactly drop-in. There's new commands for a bunch of things, mainly around adding new packages locally and globally. I led the yarn switch effort on my direct team and had people coming to me weeks after asking how to do X because of the different commands.

I suspected that someone would mention this, but the fact of the matter is both systems are mostly interoperable. The switch from npm to yarn would be nothing like migrating from Gulp + Browserify to Webpack. To switch to yarn, I printed out a one-page cheat sheet and taped it to my wall. I’ve had one blunder in the time I’ve used it (misunderstanding what `yarn upgrade` did x_x), but it was easily reverted.

I think you're making TeMPOraL's point, though.

Even in this relatively close case, it's not a zero-overhead transition. There are some changes. There are some new behaviours. You still need to know which things really work exactly the same and where the differences come from even if those differences are only minor. You always need due diligence about whether a new tool is reliable, future-proof, trustworthy, etc. And that's all after finding out about the new tool and deciding this one is actually worth looking into.

Multiply all of that by the absurd degree of over-dependence and over-engineering in the JS ecosystem, and it's entirely fair to question whether the constant nagging overheads are worthwhile.

Re: Many packages suddenly disappeared

#247
post #101

Earlier quoted context omitted.

maybe it's time to push for adding signed packages to npm long discussion here: https://github.com/node-forward/discussions/issues/29

I am very surprised that a package manager of this calibre and impact abstains from best practices when it comes to authentication through code-signing. Other package managers are miles ahead of NPM. For example, Nix, which uses immutability and hashing to always produce the same artifact, regardless of changes of the sources.

comparing distro package managers is a ton different than free for all spaces like packagist, ruby gems, pypi, npm, etc.

Re: Many packages suddenly disappeared

#249

Earlier quoted context omitted.

> yarn, typescript, react; say what you want about js fatigue, these are rock-solid, well-tested projects that are really good at what they do. I wish webpack was on that list.

I mean, there's plenty more that could be on that list, it's not exhaustive. Webpack though I'm really not sure should be. It's certainly improving, but it's nowhere near the same league as the other ones. Edit: Ah, I see what you meant :)

That's exactly my point. I wished it deserved to be on the list.

Re: Many packages suddenly disappeared

#250
post #214
post #148

Earlier quoted context omitted.

The term "nazi" is not simply mildly offensive, there are likely legal implications if you want to serve users in Germany.

Even if (which it doesn't, the term is not forbidden), why should npm care?

Even if what?
Post reply on HN