News for hackers. Stuff that matters.
Re:Many packages suddenly disappeared by StavrosK on Saturday January 06, 2018 @03:08PM (#16087168)
What's the alternative? Have the maintainer snail-mail you the packages?
Re:Many packages suddenly disappeared by vitaliyf on Saturday January 06, 2018 @03:11PM (#16087183)
You run a private NPM mirror where you copy dependencies that you rely on, after auditing them (for code quality and licensing).
Re:Many packages suddenly disappeared by fareesh on Saturday January 06, 2018 @03:19PM (#16087226)
Realistically if someone were to sneak something in, what kind of audit would you need to be able to catch it?
Re:Many packages suddenly disappeared by StavrosK on Saturday January 06, 2018 @03:25PM (#16087252)
Wouldn't just pinning the hash of a package be a better solution?
Re:Many packages suddenly disappeared by tomjakubowski on Saturday January 06, 2018 @03:34PM (#16087299)
That’s probably fine from the security perspective, but the hash won’t make the package re-appear if it disappears out of nowhere. That’s the other benefit of a private/on-premesis mirror.
Re:Many packages suddenly disappeared by StavrosK on Saturday January 06, 2018 @07:28PM (#16088313)
True. I work with PyPI and it's been extremely solid for years, so we tend to just not consider this a problem at all. Pipenv stores hashes for each package version as well, so you get the security aspect built in.

Pipenv has pretty much fixed Python packaging/dependencies, in my opinion. It's the all-in-one tool I've always wanted. If you do any Python work, try it, it's great.

Re:Many packages suddenly disappeared by eitland on Saturday January 06, 2018 @04:58PM (#16087706)
Yarn caches locally, doesn't it?
Re:Many packages suddenly disappeared by the_duke on Saturday January 06, 2018 @04:13PM (#16087486)
Easiest solution without infrastructure imo is to vendor node_modules as a git submodule.

(Of course it's even easier to just add node_modules to the repo but that is messy).

Re:Many packages suddenly disappeared by aabbcc1241 on Monday January 08, 2018 @12:24AM (#16094828)
and you better fork the git repo, otherwise the incident happening to npm can happen on github / whatever remote repo.
Re:Many packages suddenly disappeared by chris_7 on Sunday January 07, 2018 @12:25AM (#16089388)
I don't know JS, but this sounds like a lot more work than just checking everything into your repo?
Re:Many packages suddenly disappeared by weinzierl on Saturday January 06, 2018 @03:20PM (#16087230)
This, or if you have the money there are companies that do that for you.
Re:Many packages suddenly disappeared by perlgeek on Saturday January 06, 2018 @03:14PM (#16087201)
Have a local mirror with the relevant packages, or a caching proxy.
Re:Many packages suddenly disappeared by MarkyC4 on Saturday January 06, 2018 @03:16PM (#16087209)
create a mirror registry containing the packages you depend on
Re:Many packages suddenly disappeared by astrobe_ on Saturday January 06, 2018 @04:55PM (#16087697)
Git or similar?