News for hackers. Stuff that matters.
Re:Yarn registry was down by tuananh on Friday May 25, 2018 @08:21PM (#17159283)
depending on npm is scary >.<
Re:Yarn registry was down by moojd on Friday May 25, 2018 @08:41PM (#17159384)
I think it's probably a good idea to run your own proxy/mirror of whatever package registry your language uses if you heavily depend on it being available. We proxy packagist at work, I'm starting to think we should do the same with npm. Has anyone here had success with any out of the box solutions?
Re:Yarn registry was down by manyxcxi on Friday May 25, 2018 @09:09PM (#17159491)
We use Sonatype Nexus OSS to host private as well as mirror public Maven, npm, and Docker repositories. It took a small amount of fiddling but in less than a day we were up and running, using our LDAP for auth, and it’s been pretty much trouble free from the get go. In fact, we even use it to host our own completely custom internal package system (based on Ivy) for our content packages and database modules. It’s been a huge boon to us.

Artifactory is another competitor but last I checked npm and Docker registries required the paid version.

Re:Yarn registry was down by Silhouette on Friday May 25, 2018 @08:59PM (#17159448)
Has anyone here had success with any out of the box solutions?

No, but we have had multiple failures with various tools when attempts to remove the remote dependencies came into conflict with not particularly unusual real world requirements. This is a pretty serious flaw in the JS ecosystem right now.

Unfortunately I can't offer much constructive advice here. We have found no good solution so far that doesn't have significant limitations, except in the case that all of your developers are in the same place and you are willing to literally clone the entire thing also in the same place, have everyone use that one clone, and incorporate the necessary maintenance work into your processes (which is a viable if somewhat awkward strategy if these constraints are acceptable in your situation).

Re:Yarn registry was down by doublerebel on Saturday May 26, 2018 @02:22AM (#17160530)
Yes, I've been running smart-private-npm for years on Cloudant accounts. Works exactly like original npm, but more reliable. Glad to provide advice if you go that direction.
Re:Yarn registry was down by TAForObvReasons on Friday May 25, 2018 @09:30PM (#17159589)
verdaccio for NPM is a breeze to set up: https://www.verdaccio.org/
Re:Yarn registry was down by mastahmind on Friday May 25, 2018 @08:39PM (#17159369)
well, you can look at it at both ways, if yarn just used npm's registry then there wouldn't be a problem. I am not sure what's their reason to add a registry (a mirror at that) if they don't plan to make their own.
Re:Yarn registry was down by jessaustin on Friday May 25, 2018 @08:52PM (#17159422)
ISTM this was a marketing ploy for yarn. If CF could proxy npm's registry faster than npm could serve it directly, yarn could claim to be faster than npm. Even if the apps themselves had been identical, network speed is still speed. As we could expect for any competitive advantage that is purchased by one party, it has now been purchased by another party, so it ceases to be an advantage at all. The Red Queen lives!
Re:Yarn registry was down by andrewshifflett on Saturday May 26, 2018 @02:49AM (#17160586)
CJ (CTO at npm) explained on Twitter why they switched to Cloudflare:

https://twitter.com/ceejbot/status/1000230136900239360

(See: https://developers.cloudflare.com/workers/about/)

Re:Yarn registry was down by asadlionpk on Saturday May 26, 2018 @02:30AM (#17160548)
Maybe future proofing? They can always make their own and just point CNAME to the new registry?