News for hackers. Stuff that matters.
Re:Yarn – A new package manager for JavaScript by tranvu on Tuesday October 11, 2016 @11:43AM (#12685431)
Yarn isn't a replacement for npm itself. It's a client that can read/write to npm, and other registries such as Bower.
Re:Yarn – A new package manager for JavaScript by thoughtpalette on Tuesday October 11, 2016 @12:29PM (#12685902)
Well, it seems like it could be according to the article. What would you still need to use NPM (the cli) for, other than package hosting?

According to http://blog.npmjs.org/post/151660845210/hello-yarn, it seems it doesn't work with private packages yet, which may or may not be an issue for your project. But it seems this is a complete CLI replacement for NPM.

Re:Yarn – A new package manager for JavaScript by wtetzner on Tuesday October 11, 2016 @04:03PM (#12688048)
Yes, it replaces the client, but it uses the same package repository and package format.
Re:Yarn – A new package manager for JavaScript by dacjames on Tuesday October 11, 2016 @09:17PM (#12689767)
And thus could have been implemented as part of the existing client.
Re:Yarn – A new package manager for JavaScript by wtetzner on Wednesday October 12, 2016 @09:58AM (#12692841)
"Could have been implemented as part of the existing client" isn't the same as "Should have been implemented as part of the existing client".

I personally don't know much about either tool (don't do a ton of JS), but it's possible that fixing the existing client without either breaking backward compatibility or making it too complicated (multiple modes of operation) was too difficult or not worth it.

Also, I'm having a really hard time understanding the complaint about a new client. The value is in repository of reusable code, not the client. That you can use different clients with the same repository is a feature, not a bug.

Re:Yarn – A new package manager for JavaScript by hal9zillion on Thursday October 13, 2016 @05:57AM (#12699605)
Yeah - the npm client codebase would not be fun to do a big refactor on. And you would need to do a big refactor to make the v3 flat install process deterministic and/or performant.

These issues have been raised a few times, along with the shrinkwrap/reproducability stuff, and it didnt seem like it was a big priority for the core team. Understandably I guess they seem more focussed on the enterprise/private repo side of things and just keeping things running on the client side.

Re:Yarn – A new package manager for JavaScript by rubber_duck on Tuesday October 11, 2016 @01:00PM (#12686215)
npm = node package manager = CLI tool which Yarn replaces.

npmjs.com = package repo which Yarn can use.

at least as far as I can tell

Re:Yarn – A new package manager for JavaScript by EugeneOZ on Tuesday October 11, 2016 @02:32PM (#12687209)
I'm almost sure complain was about npm as a tool, not about repo :)